It documents your intent – you will be storing small numbers, rather than a character.
Also it looks nicer if you’re using other typedefs such as uint16_t
or int32_t
.
More Related Contents:
- Is there a way to use a typedef struct variable in a function…? [closed]
- Usage of uint_8, uint_16 and uint_32
- typedef struct vs struct definitions [duplicate]
- self referential struct definition?
- Understanding typedefs for function pointers in C
- How do you read C declarations?
- Are typedef and #define the same in c?
- Why should we typedef a struct so often in C?
- typedef pointer const weirdness
- typedef fixed length array
- How to define a typedef struct containing pointers to itself?
- Opaque C structs: various ways to declare them
- What is ‘forward declaration’ and the difference between ‘typedef struct X’ and ‘struct X’?
- C typedef of pointer to structure
- Enforce strong type checking in C (type strictness for typedefs)
- C Typedef and Struct Question
- C : typedef struct name {…}; VS typedef struct{…} name;
- Why does “typdef struct { struct S *s; } S;” containing a pointer to same type compile?
- Is typedef’ing a pointer type considered bad practice? [duplicate]
- Convert objective-c typedef to its string equivalent
- What does a typedef with parenthesis like “typedef int (f)(void)” mean? Is it a function prototype?
- What is the use of typedef?
- C Typedef – Incomplete Type
- dereferencing pointer to incomplete type
- How to create a typedef for function pointers
- In C, is it good form to use typedef for a pointer?
- What does 1024LL mean in C [duplicate]
- Why does strchr take an int for the char to be found?
- What’s the difference between logical SSE intrinsics?
- prevent gcc from removing an unused variable