Created
March 30, 2012 16:56
-
-
Save garthhumphreys/2252898 to your computer and use it in GitHub Desktop.
NSLog format specifiers
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%@ Object | |
%d, %i signed int | |
%u unsigned int | |
%f float/double | |
%x, %X hexadecimal int | |
%o octal int | |
%zu size_t | |
%p pointer | |
%e float/double (in scientific notation) | |
%g float/double (as %f or %e, depending on value) | |
%s C string (bytes) | |
%S C string (unichar) | |
%.*s Pascal string (requires two arguments, pass pstr[0] as the first, pstr+1 as the second) | |
%c character | |
%C unichar | |
%lld long long | |
%llu unsigned long long | |
%Lf long double |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment