ics_analyzer/src/read_until_string.h

8 lines
322 B
C

// the same as read_until_string, but this function not only truncates but fills remaining chars with null characters
// this function is cleaner and nicer to work with, but not as fast as "read_until_string"
// ct means "clean truncate"
#pragma once
void read_until_string(int fd, char buffer[], char search_string[]);