don't set page size by default
[tridge/junkcode.git] / echo.c
1 #include <stdio.h>
2
3
4 #define MIN(a,b) ((a)<(b)?(a):(b))
5
6
7 static void foo(char *inbuf)
8 {
9         unsigned int data_len = 0x10000 - 39;
10
11         data_len = MIN(data_len, (sizeof(inbuf)-(37)));
12
13         printf("data_len=%u\n", data_len);
14 }
15
16 int main(void)
17 {
18         char buf[0x10000];
19
20         foo(buf);
21 }