Thread: Reentrant? Word after function? Ever seen this?

  1. #1
    Registered User
    Join Date
    Jun 2012
    Posts
    21

    Reentrant? Word after function? Ever seen this?

    Here is a chunk of code with multiple uses of the word reentrant AFTER a function. I have never seen this, I found some information about reentrant online, is this word just implying that these functions are reentrant? How does it not effect the syntax with an error? Is it part of C's library or a pragma??? When I search the word in all files a message box appears stating "Unable to find <command line>"

    Any idea? Thanks much.

    Code:
    #if defined(__RCSTM8__)extern int putchar(const char c);
    #else
    extern int putchar(const int c);
    #endif
    extern int     puts(const char LOCAL_GENERIC *s) reentrant;
    extern int     printf(const char LOCAL_GENERIC *format, ...) reentrant;
    extern int     sprintf(char LOCAL_GENERIC *buffer, const char LOCAL_GENERIC *format, ...) reentrant;
    extern int     scanf(const char LOCAL_GENERIC *format, ...) reentrant;
    extern int     sscanf(const char LOCAL_GENERIC *buffer, const char LOCAL_GENERIC *format, ...) reentrant;
    #ifdef _VA_LIST_DEFINED
    extern int vprintf(const char *, va_list) reentrant;
    extern int vsprintf(char *, const char *, va_list) reentrant;
    #endif

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,661
    It's most likely to be something special to your C compiler.

    From your other posts, I take it you're writing code for some kind of board which may not even have an OS, let alone a C compiler.

    C compilers for such "boards" tend to have some extra keywords and features not found in normal desktop (AKA "hosted") compilers.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  3. #3
    Registered User
    Join Date
    Oct 2008
    Location
    TX
    Posts
    2,059
    Hope this webpage helps!

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 28
    Last Post: 10-23-2011, 07:17 PM
  2. Capitalize first letter of a word (function)
    By xwielder in forum C++ Programming
    Replies: 13
    Last Post: 10-05-2011, 11:11 PM
  3. Reentrant Message Processing (WndProc)
    By phantomotap in forum Windows Programming
    Replies: 7
    Last Post: 04-28-2009, 10:44 AM
  4. inet_ntop reentrant?
    By stevfletchcom in forum Networking/Device Communication
    Replies: 3
    Last Post: 10-17-2008, 09:58 AM
  5. How to get Quit event of WORD from our function?
    By lucadoi in forum Windows Programming
    Replies: 3
    Last Post: 10-09-2007, 11:22 AM