i2-console-input #9
3 changed files with 6 additions and 6 deletions
|
|
@ -24,8 +24,8 @@
|
||||||
|
|
||||||
#include "../Utils/Error.h"
|
#include "../Utils/Error.h"
|
||||||
|
|
||||||
IonyError iony_print(const char *text, long length);
|
IonyError iony_console_print(const char *text, long length);
|
||||||
|
|
||||||
IonyError iony_get_character(char *character);
|
IonyError iony_console_get_character(char *character);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
|
|
@ -30,7 +30,7 @@ static HANDLE iony_standard_console_in = 0;
|
||||||
#include "../../Include/Iony/Utils/System.h"
|
#include "../../Include/Iony/Utils/System.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
IonyError iony_print(const char *text, const long length) {
|
IonyError iony_console_print(const char *text, const long length) {
|
||||||
if (text == 0) {
|
if (text == 0) {
|
||||||
return IONY_ERROR_INVALID_POINTER;
|
return IONY_ERROR_INVALID_POINTER;
|
||||||
}
|
}
|
||||||
|
|
@ -54,7 +54,7 @@ IonyError iony_print(const char *text, const long length) {
|
||||||
return IONY_ERROR_NONE;
|
return IONY_ERROR_NONE;
|
||||||
}
|
}
|
||||||
|
|
||||||
IonyError iony_get_character(char *character) {
|
IonyError iony_console_get_character(char *character) {
|
||||||
if (character == 0) {
|
if (character == 0) {
|
||||||
return IONY_ERROR_INVALID_POINTER;
|
return IONY_ERROR_INVALID_POINTER;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -23,12 +23,12 @@
|
||||||
#include <Iony/Core/Console.h>
|
#include <Iony/Core/Console.h>
|
||||||
|
|
||||||
int main(void) {
|
int main(void) {
|
||||||
if (iony_print("Hello, World!\n", 15) != IONY_ERROR_NONE) {
|
if (iony_console_print("Hello, World!\n", 15) != IONY_ERROR_NONE) {
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
char character = ' ';
|
char character = ' ';
|
||||||
if (iony_get_character(&character) != IONY_ERROR_NONE) {
|
if (iony_console_get_character(&character) != IONY_ERROR_NONE) {
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue