| delorie.com/archives/browse.cgi | search |
| From: | Chris Doty <orz AT atticus DOT com> |
| Newsgroups: | comp.os.msdos.djgpp |
| Subject: | Re: Using printf() with GNU Pascal Compiler |
| Date: | Sat, 28 Feb 1998 03:20:07 -0800 |
| Organization: | Worcester Polytechnic Institute |
| Lines: | 10 |
| Message-ID: | <34F7F2E7.236B@atticus.com> |
| References: | <01bd43f2$d28dd8e0$0b16ad86 AT tmoore> |
| NNTP-Posting-Host: | orz.res.wpi.net |
| Mime-Version: | 1.0 |
| To: | djgpp AT delorie DOT com |
| DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Tony wrote:
>
> How do I call printf() in a pascal file?
>
> -Tony | tmoore AT chs DOT claremont DOT edu
I believe write() and writeln() are roughly equivalent to printf().
Something like: replace:
printf("bob ate %d pounds of elk.\n", a);
with:
writeln("bob ate ", a, " pounds of elk.");
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |