blind

suckless command-line video editing utility
git clone git://git.suckless.org/blind
Log | Files | Refs | README | LICENSE

efflush.h (262B)


      1 /* See LICENSE file for copyright and license details. */
      2 #include <stdio.h>
      3 
      4 #define efflush(...) enfflush(1, __VA_ARGS__)
      5 
      6 static inline void
      7 enfflush(int status, FILE *fp, const char *fname)
      8 {
      9 	fflush(fp);
     10 	if (ferror(fp))
     11 		enprintf(status, "%s:", fname);
     12 }