Skip to content

Instantly share code, notes, and snippets.

View kamoshi's full-sized avatar

Maciej Jur kamoshi

View GitHub Profile
@kamoshi
kamoshi / test.cpp
Created December 13, 2019 15:48
io
char buffer[12];
while (fgets(buffer, sizeof buffer, input) != NULL)
{
std::string str = "";
char* ptr = buffer;
while (*ptr != NULL)
{
str += *ptr++;
}
std::cout << str;