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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T00:16:38+00:00 2026-05-27T00:16:38+00:00

In case of lack of proper updated tutorials for some particular library functions (in

  • 0

In case of lack of proper updated tutorials for some particular library functions (in my case, latest allegro5), how can one learn by oneself how to call and use those functions? Is there some clue in header files?

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-05-27T00:16:39+00:00Added an answer on May 27, 2026 at 12:16 am

    The header files are going to provide you with the bare minimum information required to correctly compile a program with those functions. It has the types, constants, and function prototypes. Nothing (short of comments) is going to explain how to correctly use the functions, just how to call them.

    General

    For example, if you see:

    int do_something(int n, const char* desc);
    

    You can only infer that you need to pass an integer n and a (C) string desc. That function returns an integer as well.

    For a more complex example:

    typedef struct {
        int foo;
        double bar;
    } blam_t;
    
    void munge(blam_t info);
    

    You know that munge takes one argument of type blam_t which is a custom structure, as defined above. You could use that to create a blam_t variable and pass it to munge():

    blam_t myvar;
    myvar.foo = 42;
    myvar.bar = 0.67;
    
    munge(myar);
    

    Allegro5

    If we look at the source of include/allegro5/display.h we see things like this:

    AL_FUNC(void, al_set_new_display_flags, (int flags));
    

    This is an uncommon way of defining functions. They are using a macro AL_FUNC to define their functions. We see (by clicking on it) that AL_FUNC is defined as:

    #define AL_FUNC(type, name, args)               type name args
    

    So that first example basically becomes:

    void al_set_new_display_flags(int flags);
    

    And we can call it with just an integer argument.

    Without any documentation, you can only hope to learn by trying the functions. Then this becomes more a reverse engineering task.

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

Sidebar

Related Questions

As is often the case, I'm struggling with the lack of proper lxml documentation
Case One: new Date(Date.parse(Jul 8, 2005)); Output: Fri Jul 08 2005 00:00:00 GMT-0700 (PST)
Case One Say you have a little class: class Point3D { private: float x,y,z;
Simple case of trying to prove I can convert NSString to NSDate . Create
Forgive me my lack of proper terminology - I don't know anything about -morphisms,
Since pagination in Codeigniter (IMHO) lack some good stuff for easier implementation when using
I looked through the questions here but didn't find one that suited my case.
Updated: This is a re-write from my original question (or lack of), the main
I think I have understood a particular situation as described below, but I lack
I am trying to learn JavaCV. As you all know, the lack of educational

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.