RoshanX,
Thank you so much for enlightening me. It works like a charm now.
Forever greatful,
P1C1078
Type: Posts; User: p1c1078
RoshanX,
Thank you so much for enlightening me. It works like a charm now.
Forever greatful,
P1C1078
My final data does not display. I must being passing the pointers incorrectly to the subsequent functions. Can anyone help? I didn't want to list all my code but felt it was necessary for clarity.
...
Hammer,
Thanks for your help. I've gotten past the compile error issue but now I'm not getting any final data to display.
I must being passing the pointers incorrectly to the subsequent...
Hammer,
I get the following UNIX compile error:
g11.c: In function `f_input2':
g11.c:210: warning: `return' with a value, in function
returning void
fyi - Using a UNIX based compiler here.
As was done in the code Salem added for 'f_input1' function I also need to return a pointer to a subsequent function from the 'f_input2' function. I'm not...
Thanks Hammer! Works great!!
Salem,
Thanks for your help. The code works nicely with 2 minor exceptions:
1. I had to move
struct s_employee *emps;
to the top of the pgm because of compile errors.
Not sure of the proper format to return a linked list. I've not found any good examples. Is this right?
/* return a linked list from f_input1 function */
return (struct...
I added the flush but still having problems. Perhaps I'll attempt to debug or ...
/************************************************************************/
/* begin -...
If I do that won't I lose all previously entered data that's in memory?
Thanks Hammer. Changed that from f to i but I still have the same error.
I'm having a problem in my second performed function. After the first 'hours' are entered I get a 'segmentation fault'. Any thoughts?
#include <stdio.h>
#include <strings.h>
#include...