I assume you know how to use scanf - partly because this is one of those rare examples that actually uses the status result of scanf.
So if the scanf was in main, you would read an integer like so
Code:
int main ( ) {
int length;
scanf( "%i", &length );
printf( "You entered %d\n", length );
}
Now if you want to bury this inside a function, you need to do this.
Code:
void foo ( int *length ) {
scanf ( "%i", length ); // this is already a pointer
printf( "You entered %d\n", *length );
}
int main ( ) {
int length;
foo ( &length ); // pass a pointer
}
So if you prototype initialization, processCustomerRecord to have int *length, and call them from main passing &length (where int length is the declaration), then you should be able to make some progress.