mirror of
https://github.com/drasko/codezero.git
synced 2026-01-13 11:23:16 +01:00
16 lines
301 B
C
16 lines
301 B
C
/*
|
|
* 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);
|
|
}
|