delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/10/25/01:20:15

From: Martin Ambuhl <mambuhl AT earthlink DOT net>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: conversion int-->string
Date: Sun, 25 Oct 1998 01:48:44 -0500
References: <3634626c DOT 29813659 AT news DOT cc DOT umanitoba DOT ca>
Organization: Nocturnal Aviation
X-Posted-Path-Was: not-for-mail
X-Accept-Language: en
Mime-Version: 1.0
Lines: 11
NNTP-Posting-Host: 1cust186.tnt12.nyc3.da.uu.net
X-ELN-Date: Sat Oct 24 23:55:02 1998
X-Mailer: Mozilla 4.5 [en] (Win95; U)
Message-ID: <3632C9CC.D97EC41@earthlink.net>
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

LupusNoctus wrote:
> 
> 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.

sprintf(strVar,"%d",intVar);


-- 
Martin Ambuhl (mambuhl AT earthlink DOT net)
Note: mambuhl AT tiac DOT net will soon be inactive

- Raw text -


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