CompuServe Messages

#fseek() rets -1

    03-Aug-93 01:17:08
Sb: #fseek() rets -1
Fm: Lee Hart [Microsoft] 76150,2536
To: james lopes 73302,1122
>>>I'm getting a return value of -1 from the fseek(). I'm giving what appears to be a valide file pointer. Well the call is FILE *fp; fseek(fp, 0L, SEEK_SET); >>>What or why is it returning a -1. The api error codes suggest -1 indicates an invalide function. ????????? I assume this code works fine under Windows NT? If so, I have several questions: (1) Which version of the C Runtime are you using? (2) Are you getting anything useful in the debug information from the debug libs? Lee There is 1 Reply.