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 8933475
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T09:32:45+00:00 2026-06-15T09:32:45+00:00

gcc 4.7.2 c89 Hello, I am using the Apache Portable Runtime and looking at

  • 0

gcc 4.7.2
c89

Hello,

I am using the Apache Portable Runtime and looking at their typedef’s

typedef short apr_int16_t
typedef int apr_int16_t
typedef size_t apr_size_t /* This is basically the same, so what's the point */

etc.

  1. So what is the point of all this?
  2. When should you decided to use C’s built-in standard data types or typedef’s data types?

I just gave a example using the APR. However, I am also speaking generally as well. There is also the stdint.h header file that typedef’s data types.

Many thanks for any suggestions,

  • 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-15T09:32:46+00:00Added an answer on June 15, 2026 at 9:32 am

    Great question.

    1. So what is the point of all this?

      It’s meant to be for abstraction, but like anything else, it is sometimes misused/overused.
      Sometimes it’s necessary for backwards compatibility (e.g. typedef VOID void in Windows), sometimes it’s necessary for proper abstraction (e.g. typedef unsigned int size_t), and sometimes it’s completely pointless logically, but makes typing easier (e.g. typedef char const *LPCSTR in Windows).

    2. When should you decided to use C’s built-in standard data types or typedef’s data types?

      If it makes something easier, or if it implements a proper abstraction barrier, use it.
      What exactly that means is something you’ll just have to learn over time.
      But don’t use it “just for kicks”!

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

Sidebar

Related Questions

gcc (GCC) 4.6.3 c89 apache runtime portable libraries Hello, Just a simple question I
gcc (Ubuntu/Linaro 4.6.1-9ubuntu3) 4.6.1 Apache protable runtime 1.4 c89 and compiling in -m32 mode
gcc (GCC) 4.7.0 c89 x86_64 Hello, I am wondering is it worth it using
c89 gcc (GCC) 4.7.2 Hello, I am looking at some string functions as I
gcc (GCC) 4.6.3 c89 Hello, I am just wondering if this is the best
gcc (GCC) 4.6.3 20120306 (Red Hat 4.6.3-2) c89 Hello, I am creating a thread
gcc (GCC) 4.6.3 20120306 (Red Hat 4.6.3-2) c89 Hello, I am wondering if I
gcc c89 I am just looking to link against the below shared library. I
gcc 4.7.2 c89 Hello, I am wondering does any one know of any tutorials
Possible Duplicate: Should a function have only one return statement? Hello, gcc 4.4.4 c89

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.