Larry Nguyen

Researcher, ICNS Lab, Korea ntiendung@gmail.com

Tuesday, March 20, 2012

Linux C++ : Append int to char*

int count = 1;
char name[10] = "out";
char num[2];

sprintf(num, "%d",count); //int -> char
strcat(name,num); //out1
Posted by Larry Nguyen at 6:16 PM
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

Blog Archive

  • ▼  2012 (10)
    • ▼  March (5)
      • Linux: Simple Socket Server in C++
      • A Method to Capture Android-x86 System Audio
      • Linux C++ : Append int to char*
      • How to build ISO android-x86 in Ubuntu
      • C/C++ : Combination (n,k)
    • ►  April (1)
    • ►  May (1)
    • ►  June (2)
    • ►  December (1)
  • ►  2013 (1)
    • ►  January (1)
  • ►  2014 (1)
    • ►  January (1)
Picture Window theme. Powered by Blogger.