Portability
|
Fonctions portables à destination des ING1 de l'ECE. Il s'agit de substituts à certaines fonctions qui sont spécifiques à Windows. Plus de détails...
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <strings.h>
#include <errno.h>
#include <termios.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/time.h>
Aller au code source de ce fichier.
Macros | |
#define | gotoligcol(x, y) portability_gotoligcol(x, y) |
#define | kbhit() portability_kbhit() |
#define | Sleep(time) portability_sleep(time) |
#define | system(arg) portability_system_call(arg) |
#define | fflush(arg) portability_clear_buffer(arg) |
#define | strcasecmp(str1, str2) _stricmp(str1, str2) |
#define | ERROR(message, ...) fprintf(stderr, "*** [%s:%i] "msg"\n", __func__, __LINE__, ## __VA_ARGS__) |
Énumérations | |
enum | Color { COLOR_DEFAULT = 0 , COLOR_BLACK = 30 , COLOR_RED = 31 , COLOR_GREEN = 32 , COLOR_YELLOW = 33 , COLOR_BLUE = 34 , COLOR_MAGENTA = 35 , COLOR_CYAN = 36 , COLOR_GRAY = 37 } |
Fonctions | |
void | portability_background_color_set (Color color) |
void | portability_text_color_set (Color color) |
void | portability_init (void) |
void | portability_shutdown (void) |
void | portability_gotoligcol (int poslig, int poscol) |
int | portability_kbhit (void) |
void | portability_clear_buffer (FILE *f) |
void | portability_sleep (unsigned int time) |
int | portability_system_call (const char *cmd) |
Fonctions portables à destination des ING1 de l'ECE. Il s'agit de substituts à certaines fonctions qui sont spécifiques à Windows.