NSLog placeholders, common file types, escape characters

Source: Internet
Author: User

"Objective-c Common file Types"
File Type Description
. m OC Source file
. h Header file
. C C Source Files
. cc C + + source files
. mm oc++ source File
"Escape character"
character Description
\b Backspace
\ t Tab
\ r Enter
\ t Horizontal tabulation
\v Vertical tabulation
\\ Back slash
"Format placeholder, commonly used bold slash means"
placeholder Description
%@ Formatting objects
%i formatting integers, including negative numbers
%p Pointer
%f Floating point Float
%e The scientific counting method of floating-point numbers
%g Floating point number
%u No-character shaping unsigned int
%hi Format Short int
%hu Format unsigned short int
%li Format Long int
%lli Format Long Long int
%x or%x binary integers
%o Eight-binary integers
%s C string
%.*s Pascal string
%c Character
%c Unichar
%llu unsigned long long int
%lg Long double
%zu size_t


From for notes (Wiz)

NSLog placeholders, common file types, escape characters

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.