| delorie.com/archives/browse.cgi | search |
| From: | Pixnaps AT netaccess DOT co DOT nz (Richard Chappell) |
| Newsgroups: | comp.os.msdos.djgpp |
| Subject: | Re: Randon Function |
| Date: | Tue, 10 Feb 1998 05:44:49 GMT |
| Organization: | Customer of Telstra New Zealand |
| Lines: | 18 |
| Message-ID: | <34dfe7b8.6111175@news.netaccess.co.nz> |
| References: | <6bgtsb$h8o AT alpha DOT delta DOT edu> <6bgvt1$ruu AT freenet-news DOT carleton DOT ca> <6blsh6$4ik AT alpha DOT delta DOT edu> <34DE8D3D DOT 115E AT cs DOT com> |
| NNTP-Posting-Host: | pppd015.netaccess.co.nz |
| To: | djgpp AT delorie DOT com |
| DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
>char * read_one_line( char *buf, int len, int seek_line, FILE *fp )
>{
[snip]
>}
So if I wanted to use this function in a program, would I have:
char *mypc;
mypc=read_one_line(&mypc, myLenWanted,myLineWanted,"data.txt");
If I've done this wrongly (which I probably have because I don't
really know anything about file i/o) please tell me what I did wrong,
and how to fix it !!
Thanx in advance,
Richard Chappell
Pixnaps AT netaccess DOT co DOT nz
Christchurch, New Zealand
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |