linux-c-programming.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Some question about one method.
@ 2004-05-21 10:24 Alphex Kaanoken
  2004-05-21 21:17 ` Jan-Benedict Glaw
  0 siblings, 1 reply; 9+ messages in thread
From: Alphex Kaanoken @ 2004-05-21 10:24 UTC (permalink / raw)
  To: Linux devellist

Hi guys,
I'm have a some question
how I can change the:
sprintf(tmp,"%s%c",tmp,sym);
where - char *tmp;int sym;
may I use strcat or another method.
I need a fast and better method for do it.

Thanx.

-- 
Senior Developer of Crew IT research labs
Alphex Kaanoken <alphex@crew.org.ru>
Web: http://crew.org.ru

^ permalink raw reply	[flat|nested] 9+ messages in thread
* RE: Some question about one method.
@ 2004-05-21 10:54 Ranga Reddy M - CTD ,Chennai.
  2004-05-21 21:19 ` Jan-Benedict Glaw
  0 siblings, 1 reply; 9+ messages in thread
From: Ranga Reddy M - CTD ,Chennai. @ 2004-05-21 10:54 UTC (permalink / raw)
  To: Alphex Kaanoken, Linux devellist

Hi,

char ch[1];
ch[0]=(char) sym;
ch[1]='\0';

strcat(tmp,ch);

usage of the strcat as you mentioned.
But, how fast this is going to be I have no idea.

Cheers,
Ranga

-----Original Message-----
From: Alphex Kaanoken [mailto:alphex@crew.org.ru]
Sent: Friday, May 21, 2004 3:55 PM
To: Linux devellist
Subject: Some question about one method.


Hi guys,
I'm have a some question
how I can change the:
sprintf(tmp,"%s%c",tmp,sym);
where - char *tmp;int sym;
may I use strcat or another method.
I need a fast and better method for do it.

Thanx.

-- 
Senior Developer of Crew IT research labs
Alphex Kaanoken <alphex@crew.org.ru>
Web: http://crew.org.ru
-
To unsubscribe from this list: send the line "unsubscribe
linux-c-programming" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2004-05-25  0:41 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-05-21 10:24 Some question about one method Alphex Kaanoken
2004-05-21 21:17 ` Jan-Benedict Glaw
2004-05-24  8:06   ` Charlie Gordon
2004-05-24 17:30     ` Jan-Benedict Glaw
2004-05-24 23:24       ` Charlie Gordon
2004-05-25  0:06         ` Jeff Woods
2004-05-25  0:41         ` Glynn Clements
  -- strict thread matches above, loose matches on Subject: below --
2004-05-21 10:54 Ranga Reddy M - CTD ,Chennai.
2004-05-21 21:19 ` Jan-Benedict Glaw

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).