#C/Sorting strings
30-Apr-93 12:02:13
Sb: #34493-#C/Sorting strings
Fm: Jerry Thompson 75300,3710
To: Brian S Pearce 100033,3006
/*
You could also read in the first and last names separately into
different components of a structure (e.g.
struct data {
char * fname;
char * lname;
.. other data ..
};
*/
Yes, then you could use something like
scanf("%s %s",data.fname,data.lname)
to read in the string and the names will be parsed for you.
-Jerry