bom.h 324 B

12345678
  1. #include <stdio.h>
  2. #include <string.h>
  3. enum { NOBOM, HASBOM, SUCCESS, ERROROPENINPUT, ERROROPENTEMP, ERRORINPUT, ERROROUTPUT, ERRORREMOVE, ERRORRENAME, ERRORCLOSEINPUT, ERRORCLOSETEMP, ERRORSEEK, ERRORWRITINGTEMP};
  4. int checkBOM(const char *filePath);
  5. int removeBOM(const char *filePath);
  6. int addBOM(const char *filePath);