2 (s)printf() could not handle %s arguments longer than 127 bytes.
9 #if !(defined(__SDCC_mcs51) && (defined(__SDCC_MODEL_SMALL) || defined(__SDCC_MODEL_MEDIUM))) && !defined(__SDCC_pic14) && !defined(__SDCC_pdk14) && !defined(__SDCC_pdk15) // Array too big to fit in memory.
11 const char *string
= "0123456789abcdef"
27 "t"; // 257 bytes excluding terminating 0.
32 #if !(defined(__SDCC_mcs51) && (defined(__SDCC_MODEL_SMALL) || defined(__SDCC_MODEL_MEDIUM))) && !defined(__SDCC_pic14) && !defined(__SDCC_pdk14) && !defined(__SDCC_pdk15) // Array too big to fit in memory.
33 sprintf (buffer
, "X%sX", string
);
35 ASSERT (buffer
[0] == 'X');
36 ASSERT (buffer
[1] == '0');
37 ASSERT (buffer
[256] == 'f');
38 ASSERT (buffer
[257] == 't');
39 ASSERT (buffer
[258] == 'X');
40 ASSERT (buffer
[259] == 0);