Hey guys I need to write a function that separates a line into five different individual fields. My first question is how do I set the entire line of input from a file to an array. These are my directions.
void dissectCustLine( char *, char *, char *, char *, char *, char * );
This function should separate the entire line of input into five individual fields.
It takes six string arguments:
* a string that contains the entire line of input as read from the custfile.txt file
* a string to pass back the customer name
* a string to pass back the customer street address
* a string to pass back the customer phone number
* a string to pass back the car info
* a string to pass back the car payment
HINT: think about using the strncpy() and strcpy() functions.