Lines Matching refs:c
85 static int php_iptc_put1(FILE *fp, int spool, unsigned char c, unsigned char **spoolbuf) in php_iptc_put1() argument
88 PUTC(c); in php_iptc_put1()
90 if (spoolbuf) *(*spoolbuf)++ = c; in php_iptc_put1()
92 return c; in php_iptc_put1()
100 int c; in php_iptc_get1() local
103 c = getc(fp); in php_iptc_get1()
105 if (c == EOF) return EOF; in php_iptc_get1()
108 cc = c; in php_iptc_get1()
112 if (spoolbuf) *(*spoolbuf)++ = c; in php_iptc_get1()
114 return c; in php_iptc_get1()
154 int c; in php_iptc_next_marker() local
158 c = php_iptc_get1(fp, spool, spoolbuf); in php_iptc_next_marker()
160 if (c == EOF) return M_EOI; in php_iptc_next_marker()
162 while (c != 0xff) { in php_iptc_next_marker()
163 if ((c = php_iptc_get1(fp, spool, spoolbuf)) == EOF) in php_iptc_next_marker()
169 c = php_iptc_get1(fp, 0, 0); in php_iptc_next_marker()
170 if (c == EOF) in php_iptc_next_marker()
173 if (c == 0xff) in php_iptc_next_marker()
174 php_iptc_put1(fp, spool, (unsigned char)c, spoolbuf); in php_iptc_next_marker()
175 } while (c == 0xff); in php_iptc_next_marker()
177 return (unsigned int) c; in php_iptc_next_marker()