🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: es.comp.os.linux.programacion
Article #10523

Re: conversion

#10523
From: David Espada
Date: Wed, 27 Feb 2002 12:54
21 lines
1466 bytes
El martes 26 de febrero, hades escribi�:
> Puedo hacer una conversion de entero a caracter tipo array

 Entiendo que te refieres al lenguaje C por omisi�n, �verdad?...

 Puedes utilizar la funci�n sprintf para formatear lo que quieras y
 meterlo en una cadena. Un ejemplo ser�a:

 	int num = 3;
	char *cadena;
	
	sprintf(cadena, "%d", num);

 Para m�s informaci�n, puedes mirar la p�gina de manual de sprintf.

 Saludos.

-- 
David Espada, a.k.a. |)a\/inci	(davinci@escomposlinux.org)

Debian GNU/Linux Sid
Technical Details
Message-ID: <a5iktt$n3e$1@kenobi.antakira.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!newsfeeds.belnet.be!news.belnet.be!newsfeed00.sul.t-online.de!t-online.de!newsfeed.freenet.de!fu-berlin.de!newsfeed.bcn.ttd.net!news.bcn.ttd.net!frodo.antakira.com!212.25.139.151!news.audiolis.com!192.168.5.1!news.antakira.com!not-for-mail
References: <a5h4g8$ugc$1@news.ya.com>

Show Full Headers
Complete Article Headers
X-Google-Language: SPANISH,ASCII
X-Google-Thread: f86c8,ceee192cb82da049
X-Google-Attributes: gidf86c8,public
X-Google-ArrivalTime: 2002-02-27 05:02:15 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!newsfeeds.belnet.be!news.belnet.be!newsfeed00.sul.t-online.de!t-online.de!newsfeed.freenet.de!fu-berlin.de!newsfeed.bcn.ttd.net!news.bcn.ttd.net!frodo.antakira.com!212.25.139.151!news.audiolis.com!192.168.5.1!news.antakira.com!not-for-mail
From: David Espada <david@fangorn.net>
Newsgroups: es.comp.os.linux.programacion
Subject: Re: conversion
Date: 27 Feb 2002 12:54:21 GMT
Organization: Unseelie Court
Lines: 21
Message-ID: <a5iktt$n3e$1@kenobi.antakira.com>
References: <a5h4g8$ugc$1@news.ya.com>
NNTP-Posting-Host: 213-97-227-24.uc.nombres.ttd.es
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
User-Agent: slrn/0.9.7.3 (Linux)