filecomplete/main.cpp

19 lines
411 B
C++
Raw Normal View History

#include "filecomplete.h"
#include <iostream>
#include <string>
int main(int argc, char** argv)
{
std::cout << "PreContent1 " << std::endl;
std::cout << "PreContent2 " << std::endl;
fc_append('|');
while (1) {
char* content = fc_readline();
if (content) {
std::cout << std::string(content) << std::endl;
fc_free(content);
}
}
return 0;
}