Revision 219
xpm to xpm2
xpm_utils.c | ||
---|---|---|
8 | 8 |
#include <stdlib.h> |
9 | 9 |
#include <string.h> |
10 | 10 |
|
11 |
void xpm_save_as_xpm2(char **p, const char *s){ |
|
11 |
void xpm_save_as_xpm2(const char **p, const char *s){
|
|
12 | 12 |
FILE *f = fopen(s, "w"); |
13 | 13 |
int w, h, num_colors, chars_per_pixel; |
14 | 14 |
sscanf(p[0], "%d %d %d %d", &w, &h, &num_colors, &chars_per_pixel); |
Also available in: Unified diff