[AD] [ alleg-Bugs-3001230 ] Errno not set to 0 at program startup |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
- To: noreply@xxxxxxxxxx
- Subject: [AD] [ alleg-Bugs-3001230 ] Errno not set to 0 at program startup
- From: "SourceForge.net" <noreply@xxxxxxxxxx>
- Date: Thu, 13 May 2010 18:58:05 +0000
Bugs item #3001230, was opened at 2010-05-13 20:55
Message generated for change (Comment added) made by
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105665&aid=3001230&group_id=5665
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Core Library
Group: 4.9
Status: Open
Resolution: None
>Priority: 3
Private: No
Submitted By: https://www.google.com/accounts ()
Assigned to: Nobody/Anonymous (nobody)
Summary: Errno not set to 0 at program startup
Initial Comment:
I think that it should be.
Version: 4.9.19.0.
----------------------------------------------------------------------
>Comment By: https://www.google.com/accounts ()
Date: 2010-05-13 20:58
Message:
Code:
---------------------------------------------------------------------------------------
#include <stdio.h>
#include <allegro5/allegro.h>
int main()
{
if (al_init() == false)
{
fprintf(stderr,"Allegro could be not initialized! Errno =
%d\n",al_get_errno());
return 1;
}
printf("Errno = %d\n",al_get_errno());
return 0;
}
-------------------------------------------------------
Output:
mateusz@xxxxxxxxxx$ gcc errno.c -lallegro -Wall
mateusz@xxxxxxxxxx$ ./a.out
Errno = 12
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105665&aid=3001230&group_id=5665