以下语法对于从函数返回指针是否正确?
bmpfile_t*
bmp_create_from_file(const char *filename, bmpfile_t *bmp)
{
FILE *fp;
fp = fopen(filename, "r");
bmp_get_header_from_file(fp, bmp);
bmp_get_dib_from_file(fp, bmp);
bmp_get_pixels_from_file(fp, bmp);
fclose(fp);
return &bmp;
}