to retirieve mani pulates files

to retirieve mani pulates files - Code : / This is devloped...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
Sheet1 Page 1 Code : // This is devloped by narender #include <stdio.h> #include <stdlib.h> #include <string.h> #define MAXFIELDS 1000 #include<mem.h> #include<string.h> void main(int argc, char *argv[]) { char *p,*q,*r,*buf typedef char string11[12] FILE *in,*out,*out1 int a,i,j,n,field_pos[MAXFIELDS+1],nfield=0,pos,lrec char *record,field_type[MAXFIELDS] // string11 field_data[500] string11 field_name[MAXFIELDS] struct { char version char datum[3] long nrec short nhead short lrec char dum1[2] char transact char encrypt char mdx char dum2[3] } header struct { char name[11] char type char dum1[4] unsigned char length char ndec char dum2[2] char workid char dum3[11] char data[10] } field switch(argc) { case 1: in=stdin break case 2: if ((in = fopen(argv[1],"rb")) == NULL) { fprintf(stderr,"Input file %s not found
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Sheet1 Page 2 database FIELD: %s",field_name[3]) field_pos[nfield++]=pos pos+=(int)field.length n-=(int)field.length } for (i=1 { printf("%s%c",field_name[i],i==nfield-1?' :'') } // for (i=0
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 11/06/2010 for the course UBIT 411 taught by Professor Saleemelahi during the Spring '10 term at University of Karachi.

Page1 / 6

to retirieve mani pulates files - Code : / This is devloped...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online