i2-console-input #9

Merged
Mineplay merged 5 commits from i2-console-input into main 2025-10-17 17:43:08 -05:00
3 changed files with 6 additions and 6 deletions
Showing only changes of commit 98129b3260 - Show all commits

View file

@ -24,8 +24,8 @@
#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

View file

@ -30,7 +30,7 @@ static HANDLE iony_standard_console_in = 0;
#include "../../Include/Iony/Utils/System.h"
#endif
IonyError iony_print(const char *text, const long length) {
IonyError iony_console_print(const char *text, const long length) {
if (text == 0) {
return IONY_ERROR_INVALID_POINTER;
}
@ -54,7 +54,7 @@ IonyError iony_print(const char *text, const long length) {
return IONY_ERROR_NONE;
}
IonyError iony_get_character(char *character) {
IonyError iony_console_get_character(char *character) {
if (character == 0) {
return IONY_ERROR_INVALID_POINTER;
}

View file

@ -23,12 +23,12 @@
#include <Iony/Core/Console.h>
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;
}
char character = ' ';
if (iony_get_character(&character) != IONY_ERROR_NONE) {
if (iony_console_get_character(&character) != IONY_ERROR_NONE) {
return -1;
}