Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~407 People Reached
Favorite Forums
Favorite Tags
c x 7
c++ x 1
Member Avatar for dark1806

hi i need a litle help.....i must write a program that search for a string in a text file and return the line in the text file were string was found...string its an argv....i wrote this code but it returns the whole text file when i search for something [CODE=c] …

Member Avatar for Narue
0
89
Member Avatar for dark1806

i have to write C code for linux commands wich , apropos ,whereis(for a linux mini shell)..... if someone can tell me how to start...or help me with some links... which - shows the full path of (shell) commands --i need that comand to show me only the path of …

Member Avatar for Ancient Dragon
0
128
Member Avatar for dark1806

hi..pls help me with this ...when i run this c program i get in result segmentation fault message (i run in ubuntu terminal): [CODE=c]#include<stdio.h> #include<utmp.h> int main() { char *s,*c; struct utmp *u; int i; c=getlogin(); setutent(); u=getutent(); while(u!=NULL) { if(u->ut_type==7 && strcmp(u->ut_user,c)==0) { printf("%-12s",u->ut_user); printf("%-9s",u->ut_line); s=ctime(&u->ut_time); for(i=4;i<16;i++) printf("%c",s[i]); printf("(%s",u->ut_host); …

Member Avatar for dark1806
0
128
Member Avatar for dark1806

hi i m beginer in C++ programing.....can someone help me with a problem : i have to program the linux comand hostname in C++.....the c++ program should return the local hostname....thx

Member Avatar for Ancient Dragon
0
62