daily pastebin goal
63%
SHARE
TWEET

Untitled

a guest Jun 19th, 2017 46 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <stdio.h>
  2. #include <string.h>
  3. #include <stdlib.h>
  4.  
  5. #define SIZE 64
  6.  
  7. // tyler's simplified example
  8. // I want to read an int into
  9. // a char * and printf it
  10.  
  11. int main(void) {
  12.         int a = 1;
  13.     char * z;
  14.     z = malloc(SIZE);
  15.     z = strcat(z,(char*)&a);
  16.     printf("%s",z);
  17. }
RAW Paste Data
Top