feat(c23): Implement %b and %B format
This commit is contained in:
@@ -90,4 +90,10 @@ int main(void) {
|
||||
res = asprintf(&s, "test %s %d", "string", 2);
|
||||
printf("printed: %s, value: %d\n", s, res);
|
||||
free(s);
|
||||
|
||||
puts("\nC23:");
|
||||
printf("Binary %%b: %b\n", 4);
|
||||
printf("Binary %%b alternate: %#b\n", 4);
|
||||
printf("Binary %%B: %B\n", 4);
|
||||
printf("Binary %%B alternate: %#B\n", 4);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user