Gets the contents of a fieldchar *sm_fptr(int field_number);char *sm_e_fptr(char *field_name, int element);char *sm_i_fptr(char *field_name, int occurrence);char *sm_n_fptr(char *field_name);char *sm_o_fptr(int field_number, int occurrence);
- The field with the data to get.
- The element that contains the data to get.
- The occurrence that contains the data to get.
sm_fptrreturns the contents of the specified field. Panther strips leading or trailing blanks.
sm_fptrshares with several other functions a pool of buffers where it stores returned data. Consequently, you should immediately process or copy the value returned by this function.
/* This function reports the contents of a field. */
char buf, *stuf;
if ((stuf = sm_n_fptr(fieldname)) == NULL)
sprintf(buf, "Field '%s' contains '%s'",