Since 5/6/2012 10:10:35 AM, chitlesh1 has written 6 articles and participated in 16 conversations. chitlesh1 signature: chitlesh1
chitlesh1's articles:
Items(6) /1
perror question132 (6/18/2005 11:12:25 PM) comp.lang.c Im writing a program in which i have to perform several mallocs in order to simply my code i have used void e_malloc(){ perror("malloc"); _exit(EXIT_FAILURE); } if ( !(phrase.T = malloc ( sizeof *(ph... chitlesh
struct struct338 (6/12/2005 2:51:55 PM) comp.lang.c i have these structures in my program, typedef struct Loading { char **name; // Name of the program int pid; // current pid of the program struct Loading *prec; struct new_phrase *line... chitlesh
Criticise my code please.616 (6/1/2005 9:42:44 AM) comp.lang.c I would appreciate if you can criticise my code as well as if possible give advice on how to improve it. #include #include #include #include #include #include #include #define LINE_LENGTH 20 #define nL... chitlesh
read multiple lines of a file3240 (5/30/2005 4:50:49 PM) comp.lang.c How can i read lines of a file and place each line read in an array? for exemple; array[0]=line1 array[1]=line2 ... ... chitlesh
cbz2 : my Backup Script ( xdialog and mutt )442 (5/27/2005 4:29:08 PM) comp.unix.shell This is my Backup script,; It requires xdialog, mutt and bash. Its working. I wish to have some comments about my code. Is there any way I could simply simplify part of my code ? #!/bin/bash # Author : Chitle... chitlesh
creating child process630 (5/26/2005 10:36:30 PM) comp.lang.c am I lame ?? sounds like i didnt grab something !!! ive changed my code now!! whats wrong?? y for 2 loops, it prints 3 loops? #include #include #include #include #include int main(){ pid_t one, two; ch... chitlesh
chitlesh1's replies:
Items(4) /1
struct struct338 (6/12/2005 2:51:55 PM) comp.lang.c i have these structures in my program, typedef struct Loading { char **name; // Name of the program int pid; // current pid of the program struct Loading *prec; struct new_phrase *line... chitlesh1(22)
read multiple lines of a file3240 (5/30/2005 4:50:49 PM) comp.lang.c How can i read lines of a file and place each line read in an array? for exemple; array[0]=line1 array[1]=line2 ... ... chitlesh1(22)
creating child process630 (5/26/2005 10:36:30 PM) comp.lang.c am I lame ?? sounds like i didnt grab something !!! ive changed my code now!! whats wrong?? y for 2 loops, it prints 3 loops? #include #include #include #include #include int main(){ pid_t one, two; ch... chitlesh1(22)
Pointer Question #41024 (5/26/2005 1:05:34 PM) comp.lang.c Hello Everyone. Is the followinf legid c code? int i; int *A; A=(int *)malloc(5*sizeof(int)); for(i=0; i<5; i++) scanf("%d",A+i); MTIA ... gliongreece1(2)