⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.93
Server IP:
65.108.141.171
Server:
Linux server.heloix.com 5.4.0-214-generic #234-Ubuntu SMP Fri Mar 14 23:50:27 UTC 2025 x86_64
Server Software:
Apache
PHP Version:
7.4.33
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
share
/
doc
/
re2c
/
examples
/
View File Name :
17_ifstream.i--input(custom).re
#include <fstream> static void conv(std::ifstream &in, std::ofstream &out) { std::streampos mar; # define YYCTYPE char # define YYPEEK() in.peek() # define YYSKIP() do { in.ignore(); if (in.eof()) return; } while(0) # define YYBACKUP() mar = in.tellg() # define YYRESTORE() in.seekg(mar) loop: /*!re2c re2c:yyfill:enable = 0; * { out.put(yych); goto loop; } "\r\n" { out.put('\n'); goto loop; } */ } int main(int argc, char **argv) { if (argc != 3) return 1; std::ifstream in(argv[1], std::ios::binary); std::ofstream out(argv[2], std::ios::binary); if (in.fail() || out.fail()) return 2; conv(in, out); return 0; }