C言語でfgetsとprintfでcatコマンド

#include <stdio.h>

#define BUF 256

int main(void)
{


FILE *fp;
char s[256];

if *1 == NULL ){
perror ("error");
}

while(fgets(s,BUF,fp) != NULL ) {

printf("%s",s);

 

}

}

*1:fp = fopen("bbb.txt","r"