From: Steven Smith <sos22@cam.ac.uk>
To: n mishra <mishra_nn@rediffmail.com>
Cc: linux-newbie@vger.kernel.org
Subject: Re: compatible header functions
Date: Sat, 25 Jan 2003 12:01:24 +0000 [thread overview]
Message-ID: <20030125120124.GA571@cam.ac.uk> (raw)
In-Reply-To: <20030125114316.23831.qmail@webmail29.rediffmail.com>
[-- Attachment #1: Type: text/plain, Size: 476 bytes --]
> I am new to writing c programs in linux and I have trouble finding
> the following functions in the header files.
> 1)itoa: to convert an integer to a string.
sprintf(buf, "%d", integer);
> 2)ltoa: to convert long integer to a string.
sprintf(buf, "%ld", integer);
> 3)strset: to set the whole string to a given character.
Not sure about this one. I would probably write my own if I needed
it, or use strlen() and memset().
Steven Smith,
sos22@cam.ac.uk.
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
prev parent reply other threads:[~2003-01-25 12:01 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-01-25 11:43 compatible header functions n mishra
2003-01-25 12:01 ` Steven Smith [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20030125120124.GA571@cam.ac.uk \
--to=sos22@cam.ac.uk \
--cc=linux-newbie@vger.kernel.org \
--cc=mishra_nn@rediffmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox