Home c for what you need macros in si in the header file intetypes.h

for what you need macros in si in the header file intetypes.h

Author

Date

Category

For what you need data from SCNXN and PRIXN macros. For example:

#include & lt; inttypes.h & gt;
// in data reading
uint32_t code_point;
FSCANF (IN, "%" SCNX32, & amp; code_point);
PrintF ("%" Prix32, Code_Point);

Answer 1, Authority 100%

We look at how they are set in & lt; inttypes.h & gt; :

# define prix32 "x"
...
# DEFINE SCNX32 "X"

i.e. Instead, in this example, “X” and:

will be affixed

fscanf (in, "%" SCNX32, & amp; code_point);
PrintF ("%" Prix32, Code_Point);

will be:

fscanf (in, "% x", & amp; code_point);
PrintF ("% x", code_point);

And the % x manifests the number in the sixdenta mapping.

Programmers, Start Your Engines!

Why spend time searching for the correct question and then entering your answer when you can find it in a second? That's what CompuTicket is all about! Here you'll find thousands of questions and answers from hundreds of computer languages.

Recent questions