The Dooba SDK provides a generic callback-based implementation for printf-style format strings:
Most developers will never directly use the generic cprintf implementation, but rather some methods that rely on it.
Understanding these formats is essential to using any method that relies on cprintf.
This page will present the available formats and some usage examples.
Available format modifiers¶
Below is a table presenting all format modifiers available for use.
Examples are presented using an imaginary "printf" method.
-> "This is a string: foobar"
-> "This string doesn't need to be NULL-terminated: foobar"
-> "This is a decimal number: 42"
-> "This is a hex number: 2a"
-> "This is a binary number: 101010"
To include a literal '%' character within a format string, it needs to be escaped by prefixing it with a backslash ('\').