deprecated os.h and removed scanf from istream as it can't return the end position

This commit is contained in:
alessandrobason 2022-08-26 11:31:08 +01:00
parent a08fc40eba
commit 5086bda758
4 changed files with 6 additions and 14 deletions

30
deprecated/os.h Normal file
View file

@ -0,0 +1,30 @@
#pragma once
#ifdef __cplusplus
extern "C" {
#endif
#include <stddef.h>
#include <string.h>
#include "str.h"
#include "collatypes.h"
#ifdef _WIN32
#include <stdio.h>
#include "win32_slim.h"
isize getdelim(char **buf, size_t *bufsz, int delimiter, FILE *fp);
isize getline(char **line_ptr, size_t *n, FILE *stream);
#define stricmp _stricmp
#else
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif
#include <stdio.h>
int stricmp(const char *a, const char *b);
#endif
str_t getUserName();
#ifdef __cplusplus
} // extern "C"
#endif