TIP: Click on subject to list as thread! ANSI
echo: aust_c_here
to: david nugent
from: David Woodruff
date: 1993-10-16 15:34:00
subject: Advancing in text file

Hello david!

13 Oct 93 03:37, david nugent wrote to David Woodruff:


 DW>> How would I read a line in from a stream and then advance
 DW>> to the next line in the file. I would like something that
 DW>> results in something similar to the pascal READLN statement
 DW>> as opposed to the pascal READ statement.

 dn> Check out fopen()/fgets()/fclose() in your library reference manaul.

 DW>> Also, how do I get a function to return a string?

 dn> C doesn't really have "strings" as such - not in the same
sense as TP. You
 dn> can return a pointer to an array which contains a 'string', or you can
 dn> strcpy() a string generated or used withing a function to a buffer whose
 dn> address is passed to it by the caller.

Thanks a lot david. This whole pointer thing is driving me really crazy!

--- FMail 0.96â

* Origin: -= Watermelon HQ =- (3:800/828.77)
SEEN-BY: 50/99 54/54 99 620/243 622/405 623/630 711/401 409 430 807 808 809
SEEN-BY: 711/932 934 712/623 627 713/888 714/906 800/0 1 2 805 809 812 822
SEEN-BY: 800/828 830 843 846
@PATH: 800/828 1 54/54 99 711/808 809 934

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.