When converting an int like so:
char a[256]; sprintf(a, \"%d\", 132);
what\'s the best way to determine how large a should be? I a
Its good that you are worried about buffer size. To apply that thought in code, I would use snprintf
snprintf( a, 256, "%d", 132 );
or
snprintf( a, sizeof( a ), "%d", 132 ); // when a is array, not pointer