blob: a2cf1c2f797d4a608606190d3580ba40be4ebdb9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#include <stdio.h>
int main(void)
{
int foo[4] = {192, 168, 1, 1};
char bla[20];
snprintf(bla, 19, "%d.%d.%d.%d", foo[0], foo[1], foo[2], foo[3]);
printf("%s\n", bla);
return 0;
}
|