参考:https://blog.csdn.net/zll_liang/article/details/8966106
流媒体调试流中经常保留流,写的多了,想写个宏,放在公共地方用。放出来大家参考指正
#define NGX_WRITE_FILE(fp, file, pin, len) static FILE *fp; fp = fopen(#file, "wb+"); fwrite(pin, len , 1, fp) #define NGX_CLOSE_FILE(fp) fclose(fp)