Skip to content

Instantly share code, notes, and snippets.

@andrijac
Created September 8, 2012 20:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andrijac/3679542 to your computer and use it in GitHub Desktop.
Save andrijac/3679542 to your computer and use it in GitHub Desktop.
testing
#include<stdio.h>
#include<conio.h>
#include<stdlib.h>
//#include<iostream>
void wl(int);
void main()
{
int i, j;
int *p = (int*)malloc(sizeof(int));
i = 5;
p = &i;
j = *p;
//printf(FILENAME_MAX);
wl(j);
//return 0;
}
void wl(int number) {
char buf [ 5 ];
sprintf(buf, "%d", number);
printf("%s\n", buf);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment