Files
srab/исх/стд-вперед-назад/ввод.tri
2025-11-26 21:32:41 +03:00

24 lines
613 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
модуль стд-вперед-назад
// c:include "stdin.h"
фн stdin_read_to_string(bytes: Цел64): Строка @внеш
фн stderr_write_string(data: Строка) @внеш
тип СтдВнутрь* = класс {
}
фн (внутрь: СтдВнутрь) прочитать*(сколько: Цел64): Строка {
вернуть прочитать(сколько)
}
фн прочитать*(сколько: Цел64): Строка {
вернуть stdin_read_to_string(сколько)
}
фн ошибка*(данные: Строка) {
stderr_write_string(данные)
}