We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reported in version: 2.0.5 Reported for operating system, platform: Linux, x86_64
On 2016-12-22 07:56:40 +0000, Kaden Thomas wrote:
in my main.c file i have this function: void read(void *env, uint8_t data) { printf("%p : 0x%x\n", env, data); } What I found is that if I call SDL_Init(), data is printed using my function unless I mark the function as static or static inline.
in my main.c file i have this function:
void read(void *env, uint8_t data) { printf("%p : 0x%x\n", env, data); }
What I found is that if I call SDL_Init(), data is printed using my function unless I mark the function as static or static inline.
On 2016-12-22 20:54:22 +0000, Philipp Wiesemann wrote:
read() is already available ("unistd.h", POSIX). The linking might get messed up if there are more functions with the same name (see also bug 2884).
On 2016-12-29 06:29:28 +0000, Ozkan Sezer wrote:
man 2 read This must be closed as invalid.
man 2 read
This must be closed as invalid.
On 2017-01-02 03:00:29 +0000, Sam Lantinga wrote:
Yes, you generally can't reimplement C library functions in your own program. The behavior is undefined on various platforms.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
This bug report was migrated from our old Bugzilla tracker.
Reported in version: 2.0.5
Reported for operating system, platform: Linux, x86_64
Comments on the original bug report:
On 2016-12-22 07:56:40 +0000, Kaden Thomas wrote:
On 2016-12-22 20:54:22 +0000, Philipp Wiesemann wrote:
On 2016-12-29 06:29:28 +0000, Ozkan Sezer wrote:
On 2017-01-02 03:00:29 +0000, Sam Lantinga wrote:
The text was updated successfully, but these errors were encountered: