www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/10/22/19:51:00

Message-ID: <002401bdfe1f$050b2660$446195cc@uic>
From: "Andrew Deren" <aderen AT interaccess DOT com>
To: <djgpp AT delorie DOT com>
Subject: Re: conversion int-->string
Date: Thu, 22 Oct 1998 19:49:30 -0500
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 4.72.3110.1
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3
Reply-To: djgpp AT delorie DOT com

I think that question was already asked here many times.
(Maybe it should go into some FAQ?)

You use sprintf function to do that:

char buffer[SIZE];

sprintf(buffer, "%d", value);


-----Original Message-----
From: LupusNoctus <ummurr03 AT NOSPAMcc DOT umanitoba DOT ca>
Newsgroups: comp.os.msdos.djgpp
To: djgpp AT delorie DOT com <djgpp AT delorie DOT com>
Date: Thursday, October 22, 1998 1:00 PM
Subject: conversion int-->string


>How does one go about putting the value of an int variable into a
>string variable?   it's not str dummy=intvar; that gives ascii value.
>


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019