EmbLogic's Blog

Author Archives: Raminder Singh

program for creating the master array including RCS

1)SOURCE CODE: #include”header.h” int f_open(char *); char *master_arr(int,char*,char *); int main(int argc,char *argv[]) { int f,i=0,k=1,j; char *buff,*ma,c,*mad; buff=malloc(2); ma=malloc(1); f=f_open(argv[1]); if(f<0) { perror(“open”); exit(EXIT_FAILURE); } mad=master_arr(f,buff,ma); printf(“\nMASTERARRAY:\n%s”,mad); return 0; } int f_open(char *arg) { int fd; fd=open(arg,O_RDONLY); return fd; … Continue reading →

Posted in Data Structures with C | Leave a comment