Ne.app NeANT
The Ne.app NeANT User module of the NeANT distribution.
IO.h
Go to the documentation of this file.
1// SPDX-License-Identifier: Apache-2.0
2// Copyright 2026, Amlal El Mahrouss (amlal@nekernel.org)
3// Licensed under the Apache License, Version 2.0 (see LICENSE file)
4// Official repository: https://github.com/ne-app-eu/src
5
6#ifndef __NEAPP_CONIO_H__
7#define __NEAPP_CONIO_H__
8
9#include <Ne/Types.h>
10
11#ifndef _CONIO
12#define _CONIO (202610)
13#endif
14
15IMPORT_C SInt32 printf(const Char*, ...);
16IMPORT_C SInt32 scanf(const Char*, ...);
17
18#ifdef NE_CONIO_COMPAT
19#define N_CONIO_COMPAT NE_CONIO_COMPAT
20
21IMPORT_C SInt32 cscanf(Char* fmt, ...);
22IMPORT_C SInt32 getch(Void);
23IMPORT_C SInt32 getche(Void);
24IMPORT_C Char* cgets(Char* s);
25IMPORT_C Void clrscr(Void);
26IMPORT_C SInt32 cputs(const Char* s);
27#endif
28
29#ifdef NE_CLRSCR_SUPPORT
30#define N_CLRSCR_SUPPORT NE_CLRSCR_SUPPORT
31
32#undef clrscr
33#define clrscr() _ROOT_NS printf("\e[1;1H\e[2J");
34#endif
35
36#endif
#define s
IMPORT_C SInt32 printf(const Char *,...)
IMPORT_C SInt32 scanf(const Char *,...)