mirror of
https://github.com/drasko/codezero.git
synced 2026-01-20 06:43:16 +01:00
Initial commit
This commit is contained in:
15
libs/c/src/perror.c
Normal file
15
libs/c/src/perror.c
Normal file
@@ -0,0 +1,15 @@
|
||||
/*
|
||||
* A temporary mock-up perror implementation just
|
||||
* for quick testing purposes. When a proper C library is
|
||||
* ported, its implementation should be used.
|
||||
*
|
||||
* Copyright (C) 2008 Bahadir Balban
|
||||
*/
|
||||
#include <stdio.h>
|
||||
|
||||
extern int errno;
|
||||
|
||||
void perror(const char *str)
|
||||
{
|
||||
printf("%s: %d\n", errno);
|
||||
}
|
||||
Reference in New Issue
Block a user