Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!rutgers!att!cbnewsj!zep From: zep@cbnewsj.ATT.COM (joel.ratsaby) Newsgroups: comp.lang.c Subject: Re: Why are @, `, and $ not used in C? Message-ID: <1167@cbnewsj.ATT.COM> Date: 4 Oct 89 20:40:18 GMT References: <11147@smoke.BRL.MIL> Reply-To: zep@cbnewsj.ATT.COM (joel.ratsaby,mt,) Organization: AT&T Bell Laboratories Lines: 12 I have a question regarding the fseek() function. If I open a file for the first time (let's assume the fp is now the file descriptor), then can I fseek(fp,(any positive offset), 0) ? I am trying to design a simple hashing algorithm, and I need to be able to place information on the file at specific places in the file. On the first time (after opening the file) I want to be able to seek forward to any location from the start. Should I first write nulls to the file (inorder to establish the length of the file) and only then call fseek(fp,(any offset less than the max length of file),fp) ? thanks j.e.r