Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- PBM_IMAGE *create_empty_PNM_IMAGE()
- {
- int x;
- int y;
- PNM_IMAGE* image_PNM=malloc(sizeof(PNM_IMAGE));
- //allocation de structure:
- if (image_PNM==NULL)
- {
- free(image_PNM);
- return NULL;
- }
- //initialisation de valeur temporaire:
- image_PNM->resolB_x=1;
- image_PNM->resolB_y=1;
- image_PNM->color_LVL=1;
- image_PNM->mgk_NBR=5;
- return image_PNM;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement