incomp-flame-post/code/print_build_info.c
2019-05-22 18:31:07 +09:00

19 lines
422 B
C

extern const char _binary_build_info_txt_start [];
extern const char _binary_build_info_txt_end [];
extern const char _binary_build_info_txt_size [];
void cstr_( char *s, unsigned long b )
{
int count = 0;
char* p = &_binary_build_info_txt_start;
while ( p != &_binary_build_info_txt_end && count < b )
{
s[count++] = *p++;
}
while ( count < b )
{
s[count++] = ' ';
}
}