Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9006295
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T01:22:20+00:00 2026-06-16T01:22:20+00:00

Ever since I started programming in C I have known/seen everyone to use the

  • 0

Ever since I started programming in C I have known/seen everyone to use the following convention when declaring variables using typedefs as shown below:

   int32_t *data_value;
   const int16_t *Order_Of_Mag;
   uint16_t min_change;
   uint8_t  eeprom_save_flag;

I understand part of the reason is for portability between different architectures. Does anyone know when and/or what standard dictates this method for declaration?

Also what’s the recommended method for dealing with standard library (stdio.h) functions that require the use of char, given that a char is neither uint8_t nor int8_t (see example functions below)

sscanf(const char *format)
int atio(const char *s)

Thanks in advance

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T01:22:21+00:00Added an answer on June 16, 2026 at 1:22 am

    The only standards that I know of that require you to use such typedefs are project/company specific coding conventions. Those coding conventions then also specify exactly which typedefs (or even macros) to use, so it might be UINT32 instead of uint32_t that you must use


    As for the choice between char, uint8_t or int8_t, the default should be to use char for character data (i.e. strings and characters) and uint8_t or int8_t for small numbers.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Ever since I started programming this has been something I have been curious about.
Ever since I started programming properly using good old VB6 and up until present
I've been a Microsoft developer ever since I started programming... I started out by
Ever since I created this Rails 3.2.3 project to use MiniTest, I have been
Ever since I installed emacs on a new machine I have seen an ugly
Every programming language I have ever seen has been based on the Latin alphabet,
I've gone rounds with this ever since I started programming classic ASP 12 (or
Ever since I started using an ORM for my day to day data access.
I have received this message ever since I started building my first iPhone program
Been running into a problem ever since I started using rvm to manage my

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.