| delorie.com/archives/browse.cgi | search |
| From: | Malcolm <donald DOT mcleanNOdoSPAM AT talk21 DOT com DOT invalid> |
| Subject: | Re: strset function |
| Newsgroups: | comp.os.msdos.djgpp |
| Message-ID: | <19b54f3c.0c6b504d@usw-ex0103-019.remarq.com> |
| Lines: | 14 |
| Bytes: | 375 |
| X-Originating-Host: | 195.153.62.220 |
| Organization: | http://www.remarq.com: The World's Usenet/Discussions Start Here |
| References: | <1e1batd DOT 137nbir1xiefqN AT d249 DOT paris-48 DOT cybercable DOT fr> |
| X-Wren-Trace: | eAsuBgceWRNYTxAND0cOTBQbFwsPAWsJDwsPWlNREUQJTRpTUAVPUFREWVxLGUpM |
| Date: | Mon, 15 Nov 1999 04:33:41 -0800 |
| NNTP-Posting-Host: | 10.0.2.19 |
| X-Complaints-To: | wrenabuse AT remarq DOT com |
| X-Trace: | WReNphoon3 942669369 10.0.2.19 (Mon, 15 Nov 1999 04:36:09 PST) |
| NNTP-Posting-Date: | Mon, 15 Nov 1999 04:36:09 PST |
| To: | djgpp AT delorie DOT com |
| DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
| Reply-To: | djgpp AT delorie DOT com |
What does strset do ? I imagine it sets a string to all one
character. This is easy to code
int strset(char *str, int ch)
{
char *first = str;
while(*str)
*str++ = (char) ch;
return str - first;
}
* Sent from AltaVista http://www.altavista.com Where you can also find related Web Pages, Images, Audios, Videos, News, and Shopping. Smart is Beautiful
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |