w32tex
About: TeX Live provides a comprehensive TeX system including all the major TeX-related programs, macro packages, and fonts that are free software. Windows sources.
  Fossies Dox: w32tex-src.tar.xz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

png22pnm.c
Go to the documentation of this file.
1 #define DUMMY \
2  set -ex; \
3  gcc -O2 -ansi -pedantic -W -Wall -Wshadow -Winline -Wstrict-prototypes \
4  png22pnm.c -o png22pnm -lpng; \
5  exit 0
6 /*
7 ** png22pnm.c
8 ** edited by pts@fazekas.hu at Tue Dec 10 16:33:53 CET 2002
9 **
10 ** based on pngtopnm.c -
11 ** read a Portable Network Graphics file and produce a portable anymap
12 **
13 ** Copyright (C) 1995,1998 by Alexander Lehmann <alex@hal.rhein-main.de>
14 ** and Willem van Schaik <willem@schaik.com>
15 **
16 ** Permission to use, copy, modify, and distribute this software and its
17 ** documentation for any purpose and without fee is hereby granted, provided
18 ** that the above copyright notice appear in all copies and that both that
19 ** copyright notice and this permission notice appear in supporting
20 ** documentation. This software is provided "as is" without express or
21 ** implied warranty.
22 **
23 ** modeled after giftopnm by David Koblas and
24 ** with lots of bits pasted from libpng.txt by Guy Eric Schalnat
25 */
26 
27 /*
28  BJH 20000408: rename PPM_MAXMAXVAL to PPM_OVERALLMAXVAL
29  BJH 20000303: fix include statement so dependencies work out right.
30 */
31 /* GRR 19991203: moved VERSION to new version.h header file */
32 
33 /* GRR 19990713: fixed redundant freeing of png_ptr and info_ptr in setjmp()
34  * blocks and added "pm_close(ifp)" in each. */
35 
36 /* GRR 19990317: declared "clobberable" automatic variables in convertpng()
37  * static to fix Solaris/gcc stack-corruption bug. Also installed custom
38  * error-handler to avoid jmp_buf size-related problems (i.e., jmp_buf
39  * compiled with one size in libpng and another size here). */
40 
41 #include <math.h>
42 #include <png.h> /* includes zlib.h and setjmp.h */
43 #if PNG_LIBPNG_VER_MINOR > 4
44 #include <pngstruct.h>
45 #include <pngpriv.h>
46 #include <pnginfo.h>
47 #endif
48 
49 #if PNG_LIBPNG_VER >= 10600
50 #define INFO_VAR_GAMMA colorspace.gamma
51 #else
52 #define INFO_VAR_GAMMA gamma
53 #endif
54 
55 #if 0
56 #define VERSION "p2.37.4 (5 December 1999) +netpbm"
57 #else
58 #define VERSION "0.11"
59 #endif
60 
61 /**** pts ****/
62 #define PBMPLUS_RAWBITS 1
63 #define PGM_OVERALLMAXVAL 65535
64 #define PPM_OVERALLMAXVAL PGM_OVERALLMAXVAL
65 
66 /* #include "pnm.h" */
67 
68 typedef struct _jmpbuf_wrapper {
69  jmp_buf jmpbuf;
71 
72 /* GRR 19991205: this is used as a test for pre-1999 versions of netpbm and
73  * pbmplus vs. 1999 or later (in which pm_close was split into two)
74  */
75 #ifdef PBMPLUS_RAWBITS
76 # define pm_closer pm_close
77 # define pm_closew pm_close
78 #endif
79 
80 #ifndef TRUE
81 # define TRUE 1
82 #endif
83 #ifndef FALSE
84 # define FALSE 0
85 #endif
86 #ifndef NONE
87 # define NONE 0
88 #endif
89 
90 /**** pts ****/
91 #include <stdio.h> /* fprintf() */
92 #include <string.h> /* strcmp() */
93 #include <stdlib.h> /* exit() */
94 #include <assert.h>
95 /* #include "pnm.h" */
96 #if (defined(__STDC__) && !defined(NO_PROTO)) || defined(__cplusplus)
97 # define _(args) args
98 # define OF(args) args
99 # define ___(arg2s,arg1s,argafter) arg2s
100 #else
101 # define _(args) ()
102 # ifndef OF
103 # define OF(args) ()
104 # endif
105 # define ___(arg2s,arg1s,argafter) arg1s argafter
106 #endif
107 #define u_char unsigned char
108 typedef unsigned dimen_t;
109 /* typedef unsigned char xel[4]; */ /* "RGBA" */
110 typedef unsigned pixval;
111 #define PBM_TYPE 1
112 #define PGM_TYPE 2
113 #define PPM_TYPE 3
114 #define pnm_init(_a,_b)
115 #define PMM(immed_str) stderr, "notice: " immed_str "\n"
116 #define pm_message printf
117 #define PME(immed_str) stderr, "error: " immed_str "\n"
118 #define pm_error printf /* !! exit */
119 #define pm_errexit() exit(3)
120 #define pm_close(file) fflush(file)
121 #define pm_keymatch(stra, strb, _x) (0==strcmp((stra),(strb)))
122 #define PPM_MAXMAXVAL 1023
123 typedef unsigned long pixel;
124 #define PPM_GETR(p) (((p) & 0x3ff00000) >> 20)
125 #define PPM_GETG(p) (((p) & 0xffc00) >> 10)
126 #define PPM_GETB(p) ((p) & 0x3ff)
127 /************* added definitions *****************/
128 #define PPM_PUTR(p, red) ((p) |= (((red) & 0x3ff) << 20))
129 #define PPM_PUTG(p, grn) ((p) |= (((grn) & 0x3ff) << 10))
130 #define PPM_PUTB(p, blu) ((p) |= ( (blu) & 0x3ff))
131 /**************************************************/
132 #define PPM_ASSIGN(p,red,grn,blu) (p) = ((pixel) (red) << 20) | ((pixel) (grn) << 10) | (pixel) (blu)
133 #define PPM_EQUAL(p,q) ((p) == (q))
134 
135 static char* pm_allocrow (int const cols, int const size);
136 #define pnm_allocrow( cols ) ((xel*) pm_allocrow( cols, sizeof(xel) ))
137 #define PNM_ASSIGN1(x,v) PPM_ASSIGN(x,0,0,v)
138 #define PNM_GET1(x) PPM_GETB(x)
139 typedef pixel xel;
140 typedef pixval xelval;
142 /* static void pnm_writepnminit _(( FILE* file, int cols, int rows, xelval maxval, int format, int forceplain )); */
143 #define pnm_freerow( xelrow ) pm_freerow( (char*) xelrow )
144 #define pm_freerow(x) free(x)
145 /* static void pnm_writepnmrow _(( FILE* file, xel* xelrow, int cols, xelval maxval, int format, int forceplain )); */
146 static FILE* pm_openr (const char* const name);
147 static FILE* pm_openw (const char* const name);
148 
149 static void pm_usage (const char usage[], FILE *f) {
150  fprintf(f, /*"png22pnm "VERSION"\n"*/"usage: %s\n", usage);
151  exit(1);
152 }
153 
154 static char* pm_allocrow(int const cols, int const size) {
155  register char* itrow;
156 
157  itrow = (char*) malloc( cols * size );
158  if ( itrow == (char*) 0 ) {
159  fprintf(stderr, "out of memory allocating a row\n" );
160  exit(1);
161  }
162  return itrow;
163 }
164 
165 static FILE*
166 pm_openr(const char * const name) {
167  FILE* f;
168 
169  if (strcmp(name, "-") == 0)
170  f = stdin;
171  else {
172 #ifndef VMS
173  f = fopen(name, "rb");
174 #else
175  f = fopen (name, "r", "ctx=stm");
176 #endif
177  if (f == NULL) {
178  fprintf(stderr,"not found: %s\n", name);
179  exit(1);
180  }
181  }
182  return f;
183 }
184 
185 static FILE*
186 pm_openw(const char * const name) {
187  FILE* f;
188 
189  if (strcmp(name, "-") == 0)
190  f = stdout;
191  else {
192 #ifndef VMS
193  f = fopen(name, "wb");
194 #else
195  f = fopen (name, "w", "mbc=32", "mbf=2"); /* set buffer factors */
196 #endif
197  if (f == NULL) {
198  fprintf(stderr,"not found: %s\n", name);
199  exit(1);
200  }
201  }
202  return f;
203 }
204 
205 static long
206 rgbnorm(const long rgb, const long lmaxval, const int n,
207  const char * const colorname) {
208 /*----------------------------------------------------------------------------
209  Normalize the color (r, g, or b) value 'rgb', which was specified with
210  'n' digits, to a maxval of 'lmaxval'. If the number of digits isn't
211  valid, issue an error message and identify the complete color
212  color specification in error as 'colorname'.
213 
214  For example, if the user says 0ff/000/000 and the maxval is 100,
215  then rgb is 0xff, n is 3, and our result is
216  0xff / (16**3-1) * 100 = 6.
217 
218 -----------------------------------------------------------------------------*/
219 
220  switch (n) {
221  case 1:
222  return (long)((double) rgb * lmaxval / 15 + 0.5);
223  case 2:
224  return (long) ((double) rgb * lmaxval / 255 + 0.5);
225  case 3:
226  return (long) ((double) rgb * lmaxval / 4095 + 0.5);
227  case 4:
228  return (long) ((double) rgb * lmaxval / 65535L + 0.5);
229  default:
230  { pm_error( "invalid color specifier - \"%s\"", colorname ); exit(1); }
231  }
232  return 0;
233 }
234 
235 static pixel
237  {
238  int hexit[256], i;
239  pixel p;
240  long lmaxval, r=0, g=0, b=0;
241  char* inval = "invalid color specifier - \"%s\"";
242 
243  for ( i = 0; i < 256; ++i )
244  hexit[i] = 1234567890;
245  hexit['0'] = 0;
246  hexit['1'] = 1;
247  hexit['2'] = 2;
248  hexit['3'] = 3;
249  hexit['4'] = 4;
250  hexit['5'] = 5;
251  hexit['6'] = 6;
252  hexit['7'] = 7;
253  hexit['8'] = 8;
254  hexit['9'] = 9;
255  hexit['a'] = hexit['A'] = 10;
256  hexit['b'] = hexit['B'] = 11;
257  hexit['c'] = hexit['C'] = 12;
258  hexit['d'] = hexit['D'] = 13;
259  hexit['e'] = hexit['E'] = 14;
260  hexit['f'] = hexit['F'] = 15;
261 
262  lmaxval = maxval;
263  if ( strncmp( colorname, "rgb:", 4 ) == 0 )
264  {
265  /* It's a new-X11-style hexadecimal rgb specifier. */
266  char* cp;
267 
268  cp = colorname + 4;
269  r = g = b = 0;
270  for ( i = 0; *cp != '/'; ++i, ++cp )
271  r = r * 16 + hexit[(int)*cp];
272  r = rgbnorm( r, lmaxval, i, colorname );
273  for ( i = 0, ++cp; *cp != '/'; ++i, ++cp )
274  g = g * 16 + hexit[(int)*cp];
275  g = rgbnorm( g, lmaxval, i, colorname );
276  for ( i = 0, ++cp; *cp != '\0'; ++i, ++cp )
277  b = b * 16 + hexit[(int)*cp];
278  b = rgbnorm( b, lmaxval, i, colorname );
279  if ( r < 0 || r > lmaxval || g < 0 || g > lmaxval
280  || b < 0 || b > lmaxval )
281  { pm_error( inval, colorname ); exit(1); }
282  }
283  else if ( strncmp( colorname, "rgbi:", 5 ) == 0 )
284  {
285  /* It's a new-X11-style decimal/float rgb specifier. */
286  float fr, fg, fb;
287 
288  if ( sscanf( colorname, "rgbi:%f/%f/%f", &fr, &fg, &fb ) != 3 )
289  { pm_error( inval, colorname ); exit(1); }
290  if ( fr < 0.0 || fr > 1.0 || fg < 0.0 || fg > 1.0
291  || fb < 0.0 || fb > 1.0 )
292  { pm_error( "invalid color specifier - \"%s\" - "
293  "values must be between 0.0 and 1.0", colorname ); exit(1); }
294  r = fr * lmaxval;
295  g = fg * lmaxval;
296  b = fb * lmaxval;
297  }
298  else if ( colorname[0] == '#' )
299  {
300  /* It's an old-X11-style hexadecimal rgb specifier. */
301  switch ( strlen( colorname ) - 1 /* (Number of hex digits) */ )
302  {
303  case 3:
304  r = hexit[(int)colorname[1]];
305  g = hexit[(int)colorname[2]];
306  b = hexit[(int)colorname[3]];
307  r = rgbnorm( r, lmaxval, 1, colorname );
308  g = rgbnorm( g, lmaxval, 1, colorname );
309  b = rgbnorm( b, lmaxval, 1, colorname );
310  break;
311 
312  case 6:
313  r = ( hexit[(int)colorname[1]] << 4 ) + hexit[(int)colorname[2]];
314  g = ( hexit[(int)colorname[3]] << 4 ) + hexit[(int)colorname[4]];
315  b = ( hexit[(int)colorname[5]] << 4 ) + hexit[(int)colorname[6]];
316  r = rgbnorm( r, lmaxval, 2, colorname );
317  g = rgbnorm( g, lmaxval, 2, colorname );
318  b = rgbnorm( b, lmaxval, 2, colorname );
319  break;
320 
321  case 9:
322  r = ( hexit[(int)colorname[1]] << 8 ) +
323  ( hexit[(int)colorname[2]] << 4 ) +
324  hexit[(int)colorname[3]];
325  g = ( hexit[(int)colorname[4]] << 8 ) +
326  ( hexit[(int)colorname[5]] << 4 ) +
327  hexit[(int)colorname[6]];
328  b = ( hexit[(int)colorname[7]] << 8 ) +
329  ( hexit[(int)colorname[8]] << 4 ) +
330  hexit[(int)colorname[9]];
331  r = rgbnorm( r, lmaxval, 3, colorname );
332  g = rgbnorm( g, lmaxval, 3, colorname );
333  b = rgbnorm( b, lmaxval, 3, colorname );
334  break;
335 
336  case 12:
337  r = ( hexit[(int)colorname[1]] << 12 ) +
338  ( hexit[(int)colorname[2]] << 8 ) +
339  ( hexit[(int)colorname[3]] << 4 ) + hexit[(int)colorname[4]];
340  g = ( hexit[(int)colorname[5]] << 12 ) +
341  ( hexit[(int)colorname[6]] << 8 ) +
342  ( hexit[(int)colorname[7]] << 4 ) + hexit[(int)colorname[8]];
343  b = ( hexit[(int)colorname[9]] << 12 ) +
344  ( hexit[(int)colorname[10]] << 8 ) +
345  ( hexit[(int)colorname[11]] << 4 ) + hexit[(int)colorname[12]];
346  r = rgbnorm( r, lmaxval, 4, colorname );
347  g = rgbnorm( g, lmaxval, 4, colorname );
348  b = rgbnorm( b, lmaxval, 4, colorname );
349  break;
350 
351  default:
352  { pm_error( inval, colorname ); exit(1); }
353  }
354  if ( r < 0 || r > lmaxval || g < 0 || g > lmaxval
355  || b < 0 || b > lmaxval )
356  { pm_error( inval, colorname ); exit(1); }
357  }
358  else if ( ( colorname[0] >= '0' && colorname[0] <= '9' ) ||
359  colorname[0] == '.' )
360  {
361  /* It's an old-style decimal/float rgb specifier. */
362  float fr, fg, fb;
363 
364  if ( sscanf( colorname, "%f,%f,%f", &fr, &fg, &fb ) != 3 )
365  { pm_error( inval, colorname ); exit(1); }
366  if ( fr < 0.0 || fr > 1.0 || fg < 0.0 || fg > 1.0
367  || fb < 0.0 || fb > 1.0 )
368  { pm_error( "invalid color specifier - \"%s\" - "
369  "values must be between 0.0 and 1.0", colorname ); exit(1); }
370  r = fr * lmaxval;
371  g = fg * lmaxval;
372  b = fb * lmaxval;
373  }
374  else
375  {
376  /* Must be a name from the X-style rgb file. */
377  { pm_error( "unknown color - \"%s\"", colorname ); exit(1); }
378  }
379 
380  PPM_ASSIGN( p, r, g, b );
381  return p;
382  }
383 
384 
385 /* ----- */
386 
387 /* function prototypes */
388 #ifdef __STDC__
389 static png_uint_16 _get_png_val (png_byte **pp, int bit_depth);
391 static int iscolor (png_color c);
392 static void save_text (png_info *info_ptr, FILE *tfp);
393 static void show_time (png_info *info_ptr);
395 static void convertpng (FILE *ifp, FILE *tfp);
396 int main (int argc, char *argv[]);
397 #endif
398 
401 
403 static png_uint_16 bgr, bgg, bgb; /* background colors */
404 static int verbose = FALSE;
405 static enum alpha_handling alpha = none;
406 static int background = -1;
407 static char *backstring;
408 static float displaygamma = -1.0; /* display gamma */
409 static float totalgamma = -1.0;
410 static int text = FALSE;
411 static char *text_file;
412 static int mtime = FALSE;
414 
415 #define get_png_val(p) _get_png_val (&(p), info_ptr->bit_depth)
416 
417 #ifdef __STDC__
418 static png_uint_16 _get_png_val (png_byte **pp, int bit_depth)
419 #else
420 static png_uint_16 _get_png_val (pp, bit_depth)
421 png_byte **pp;
422 int bit_depth;
423 #endif
424 {
425  png_uint_16 c = 0;
426 
427  if (bit_depth == 16) {
428  c = (*((*pp)++)) << 8;
429  }
430  c |= (*((*pp)++));
431 
432  if (maxval > maxmaxval)
433  c /= ((maxval + 1) / (maxmaxval + 1));
434 
435  return c;
436 }
437 
438 #ifdef __STDC__
440 #else
441 static void store_pixel (pix, r, g, b, a)
442 xel *pix;
443 png_uint_16 r, g, b, a;
444 #endif
445 {
446  if (alpha == alpha_only) {
447  PNM_ASSIGN1 (*pix, a);
448  } else {
449  if (((alpha == mix_only) /*|| (alpha == mix_and_alpha)*/) && (a != maxval)) {
450  r = r * (double)a / maxval + ((1.0 - (double)a / maxval) * bgr);
451  g = g * (double)a / maxval + ((1.0 - (double)a / maxval) * bgg);
452  b = b * (double)a / maxval + ((1.0 - (double)a / maxval) * bgb);
453  }
454  PPM_ASSIGN (*pix, r, g, b);
455  }
456 }
457 
458 #ifdef __STDC__
459 static png_uint_16 gamma_correct (png_uint_16 v, float g)
460 #else
462 png_uint_16 v;
463 float g;
464 #endif
465 {
466  if (g != -1.0)
467  return (png_uint_16) (pow ((double) v / maxval,
468  (1.0 / g)) * maxval + 0.5);
469  else
470  return v;
471 }
472 
473 #ifdef __STDC__
474 static int iscolor (png_color c)
475 #else
476 static int iscolor (c)
477 png_color c;
478 #endif
479 {
480  return c.red != c.green || c.green != c.blue;
481 }
482 
483 #ifdef __STDC__
484 static void save_text (png_info *info_ptr, FILE *tfp)
485 #else
486 static void save_text (info_ptr, tfp)
487 png_info *info_ptr;
488 FILE *tfp;
489 #endif
490 {
491  int i, j, k;
492 
493  for (i = 0 ; i < info_ptr->num_text ; i++) {
494  j = 0;
495  while (info_ptr->text[i].key[j] != '\0' && info_ptr->text[i].key[j] != ' ')
496  j++;
497  if (info_ptr->text[i].key[j] != ' ') {
498  fprintf (tfp, "%s", info_ptr->text[i].key);
499  for (j = strlen (info_ptr->text[i].key) ; j < 15 ; j++)
500  putc (' ', tfp);
501  } else {
502  fprintf (tfp, "\"%s\"", info_ptr->text[i].key);
503  for (j = strlen (info_ptr->text[i].key) ; j < 13 ; j++)
504  putc (' ', tfp);
505  }
506  putc (' ', tfp); /* at least one space between key and text */
507 
508  for (j = 0 ; j+0U < info_ptr->text[i].text_length ; j++) {
509  putc (info_ptr->text[i].text[j], tfp);
510  if (info_ptr->text[i].text[j] == '\n')
511  for (k = 0 ; k < 16 ; k++)
512  putc ((int)' ', tfp);
513  }
514  putc ((int)'\n', tfp);
515  }
516 }
517 
518 #ifdef __STDC__
519 static void show_time (png_info *info_ptr)
520 #else
521 static void show_time (info_ptr)
522 png_info *info_ptr;
523 #endif
524 {
525  static char *month[] =
526  {"", "January", "February", "March", "April", "May", "June",
527  "July", "August", "September", "October", "November", "December"};
528 
529  if (info_ptr->valid & PNG_INFO_tIME) {
530  pm_message ("modification time: %02d %s %d %02d:%02d:%02d",
531  info_ptr->mod_time.day, month[info_ptr->mod_time.month],
532  info_ptr->mod_time.year, info_ptr->mod_time.hour,
533  info_ptr->mod_time.minute, info_ptr->mod_time.second);
534  }
535 }
536 
537 #ifdef __STDC__
539 #else
543 #endif
544 {
545  jmpbuf_wrapper *jmpbuf_ptr;
546 
547  /* this function, aside from the extra step of retrieving the "error
548  * pointer" (below) and the fact that it exists within the application
549  * rather than within libpng, is essentially identical to libpng's
550  * default error handler. The second point is critical: since both
551  * setjmp() and longjmp() are called from the same code, they are
552  * guaranteed to have compatible notions of how big a jmp_buf is,
553  * regardless of whether _BSD_SOURCE or anything else has (or has not)
554  * been defined. */
555 
556  fprintf(stderr, "pnmtopng: fatal libpng error: %s\n", msg);
557  fflush(stderr);
558 
559  jmpbuf_ptr = png_get_error_ptr(png_ptr);
560  if (jmpbuf_ptr == NULL) { /* we are completely hosed now */
561  fprintf(stderr,
562  "pnmtopng: EXTREMELY fatal error: jmpbuf unrecoverable; terminating.\n");
563  fflush(stderr);
564  exit(99);
565  }
566 
567  longjmp(jmpbuf_ptr->jmpbuf, 1);
568 }
569 
570 #define SIG_CHECK_SIZE 4
571 
572 #if defined(__MINGW32__) || defined(__CYGWIN__) || defined(_WIN32)
573 #define DO_WIN 1
574 #else
575 #undef DO_WIN
576 #endif
577 
578 #if DO_WIN
579 #undef __STRICT_ANSI__
580 #include <fcntl.h>
581 #include <io.h>
582 #define __STRICT_ANSI__ 1
583 /*
584 extern int setmode(int, int);
585 extern FILE *fdopen(int, const char*);
586 */
587 #endif
588 
589 #ifdef __STDC__
590 static void convertpng (FILE *ifp, FILE *tfp)
591 #else
592 static void convertpng (ifp, tfp)
593 FILE *ifp;
594 FILE *tfp;
595 #endif
596 {
597  unsigned char sig_buf [SIG_CHECK_SIZE];
599  png_info *info_ptr;
600  pixel *row;
602  png_byte *png_pixel;
603  pixel *pnm_pixel;
604  int x, y;
605  int linesize;
606  png_uint_16 c, c2, c3, a;
607  int pnm_type;
608  int i;
609  int trans_mix;
611  char gamma_string[80];
612  /* these variables are declared static because gcc wasn't kidding
613  * about "variable XXX might be clobbered by `longjmp' or `vfork'"
614  * (stack corruption observed on Solaris 2.6 with gcc 2.8.1, even
615  * in the absence of any other error condition) */
616  static char *type_string;
617  static char *alpha_string;
618 
619 #if DO_WIN
620  FILE *so; int sofd;
621  setmode(fileno(stdin), O_BINARY);
623  if (0>(sofd=dup(1))) abort(); /* BUGFIX at Tue Mar 18 17:03:42 CET 2003 */
624  setmode(sofd, O_BINARY);
625  if (NULL==(so=fdopen(sofd, "wb"))) abort(); /* binary stdout */
626 #else
627  FILE *so=stdout;
628 #endif
629 
630 
631  type_string = alpha_string = "";
632 
633  if (fread (sig_buf, 1, SIG_CHECK_SIZE, ifp) != SIG_CHECK_SIZE) {
634  pm_closer (ifp);
635  { pm_error ("input file empty or too short"); exit(1); }
636  }
637  if (png_sig_cmp (sig_buf, (png_size_t) 0, (png_size_t) SIG_CHECK_SIZE) != 0) {
638  pm_closer (ifp);
639  { pm_error ("input file not a PNG file"); exit(1); }
640  }
641 
644  if (png_ptr == NULL) {
645  pm_closer (ifp);
646  { pm_error ("cannot allocate LIBPNG structure"); exit(1); }
647  }
648 
649  info_ptr = png_create_info_struct (png_ptr);
650  if (info_ptr == NULL) {
652  pm_closer (ifp);
653  { pm_error ("cannot allocate LIBPNG structures"); exit(1); }
654  }
655 
656  if (setjmp (pngtopnm_jmpbuf_struct.jmpbuf)) {
658  pm_closer (ifp);
659  { pm_error ("setjmp returns error condition"); exit(1); }
660  }
661 
664  png_read_info (png_ptr, info_ptr);
665 
666  if (verbose) {
667  switch (info_ptr->color_type) {
668  case PNG_COLOR_TYPE_GRAY:
669  type_string = "gray";
670  alpha_string = "";
671  break;
672 
674  type_string = "gray";
675  alpha_string = "+alpha";
676  break;
677 
679  type_string = "palette";
680  alpha_string = "";
681  break;
682 
683  case PNG_COLOR_TYPE_RGB:
684  type_string = "truecolor";
685  alpha_string = "";
686  break;
687 
689  type_string = "truecolor";
690  alpha_string = "+alpha";
691  break;
692  }
693  if (info_ptr->valid & PNG_INFO_tRNS) {
694  alpha_string = "+transparency";
695  }
696 
697  if (info_ptr->valid & PNG_INFO_gAMA) {
698  sprintf (gamma_string, ", image gamma = %4.2f", info_ptr->INFO_VAR_GAMMA);
699  } else {
700  strcpy (gamma_string, "");
701  }
702 
703  if (verbose) {
704  pm_message ("reading a %ldw x %ldh image, %d bit%s %s%s%s%s",
705  info_ptr->width+0L, info_ptr->height+0L,
706  info_ptr->bit_depth, info_ptr->bit_depth > 1 ? "s" : "",
707  type_string, alpha_string, gamma_string,
708  info_ptr->interlace_type ? ", Adam7 interlaced" : "");
709  pm_message ("background {index, gray, red, green, blue} = "
710  "{%d, %d, %d, %d, %d}",
711  info_ptr->background.index,
712  info_ptr->background.gray,
713  info_ptr->background.red,
714  info_ptr->background.green,
715  info_ptr->background.blue);
716  }
717  }
718 
719  png_image = (png_byte **)malloc (info_ptr->height * sizeof (png_byte*));
720  if (png_image == NULL) {
722  pm_closer (ifp);
723  { pm_error ("couldn't allocate space for image"); exit(1); }
724  }
725 
726  if (info_ptr->bit_depth == 16)
727  linesize = 2 * info_ptr->width;
728  else
729  linesize = info_ptr->width;
730 
731  if (info_ptr->color_type == PNG_COLOR_TYPE_GRAY_ALPHA)
732  linesize *= 2;
733  else
734  if (info_ptr->color_type == PNG_COLOR_TYPE_RGB)
735  linesize *= 3;
736  else
737  if (info_ptr->color_type == PNG_COLOR_TYPE_RGB_ALPHA)
738  linesize *= 4;
739 
740  for (y = 0 ; y+0U < info_ptr->height ; y++) {
741  png_image[y] = malloc (linesize);
742  if (png_image[y] == NULL) {
743  for (x = 0 ; x < y ; x++)
744  free (png_image[x]);
745  free (png_image);
747  pm_closer (ifp);
748  { pm_error ("couldn't allocate space for image"); exit(1); }
749  }
750  }
751 
752  if (info_ptr->bit_depth < 8)
754 
755  if (info_ptr->color_type == PNG_COLOR_TYPE_PALETTE) {
756  maxval = 255;
757  } else {
758  maxval = (1l << info_ptr->bit_depth) - 1;
759  }
760 
761  /* gamma-correction */
762  if (displaygamma != -1.0) {
763  if (info_ptr->valid & PNG_INFO_gAMA) {
764  if (displaygamma != info_ptr->INFO_VAR_GAMMA) {
765  png_set_gamma (png_ptr, displaygamma, info_ptr->INFO_VAR_GAMMA);
766  totalgamma = (double) info_ptr->INFO_VAR_GAMMA * (double) displaygamma;
767  /* in case of gamma-corrections, sBIT's as in the PNG-file are not valid anymore */
768  info_ptr->valid &= ~~PNG_INFO_sBIT;
769  if (verbose)
770  pm_message ("image gamma is %4.2f, converted for display gamma of %4.2f",
771  info_ptr->INFO_VAR_GAMMA, displaygamma);
772  }
773  } else {
774  if (displaygamma != info_ptr->INFO_VAR_GAMMA) {
776  totalgamma = (double) displaygamma;
777  info_ptr->valid &= ~~PNG_INFO_sBIT;
778  if (verbose)
779  pm_message ("image gamma assumed 1.0, converted for display gamma of %4.2f",
780  displaygamma);
781  }
782  }
783  }
784 
785  /* sBIT handling is very tricky. If we are extracting only the image, we
786  can use the sBIT info for grayscale and color images, if the three
787  values agree. If we extract the transparency/alpha mask, sBIT is
788  irrelevant for trans and valid for alpha. If we mix both, the
789  multiplication may result in values that require the normal bit depth,
790  so we will use the sBIT info only for transparency, if we know that only
791  solid and fully transparent is used */
792 
793  if (info_ptr->valid & PNG_INFO_sBIT) {
794  switch (alpha) {
795  /*case mix_and_alpha: */
796  case mix_only:
797  if (info_ptr->color_type == PNG_COLOR_TYPE_RGB_ALPHA ||
798  info_ptr->color_type == PNG_COLOR_TYPE_GRAY_ALPHA)
799  break;
800  if (info_ptr->color_type == PNG_COLOR_TYPE_PALETTE &&
801  (info_ptr->valid & PNG_INFO_tRNS)) {
802  trans_mix = TRUE;
803  for (i = 0 ; i < info_ptr->num_trans ; i++)
804  if (info_ptr->trans_alpha[i] != 0 && info_ptr->trans_alpha[i] != 255) {
805  trans_mix = FALSE;
806  break;
807  }
808  if (!trans_mix)
809  break;
810  }
811 
812  /* else fall though to normal case */
813 
814  case none_and_alpha:
815  case none:
816  if ((info_ptr->color_type == PNG_COLOR_TYPE_PALETTE ||
817  info_ptr->color_type == PNG_COLOR_TYPE_RGB ||
818  info_ptr->color_type == PNG_COLOR_TYPE_RGB_ALPHA) &&
819  (info_ptr->sig_bit.red != info_ptr->sig_bit.green ||
820  info_ptr->sig_bit.red != info_ptr->sig_bit.blue) &&
821  alpha == none) {
822  pm_message ("different bit depths for color channels not supported");
823  pm_message ("writing file with %d bit resolution", info_ptr->bit_depth);
824  } else {
825  if ((info_ptr->color_type == PNG_COLOR_TYPE_PALETTE) &&
826  (info_ptr->sig_bit.red < 255)) {
827  for (i = 0 ; i < info_ptr->num_palette ; i++) {
828  info_ptr->palette[i].red >>= (8 - info_ptr->sig_bit.red);
829  info_ptr->palette[i].green >>= (8 - info_ptr->sig_bit.green);
830  info_ptr->palette[i].blue >>= (8 - info_ptr->sig_bit.blue);
831  }
832  maxval = (1l << info_ptr->sig_bit.red) - 1;
833  if (verbose)
834  pm_message ("image has fewer significant bits, writing file with %d bits per channel",
835  info_ptr->sig_bit.red);
836  } else
837  if ((info_ptr->color_type == PNG_COLOR_TYPE_RGB ||
838  info_ptr->color_type == PNG_COLOR_TYPE_RGB_ALPHA) &&
839  (info_ptr->sig_bit.red < info_ptr->bit_depth)) {
840  png_set_shift (png_ptr, &(info_ptr->sig_bit));
841  maxval = (1l << info_ptr->sig_bit.red) - 1;
842  if (verbose)
843  pm_message ("image has fewer significant bits, writing file with %d bits per channel",
844  info_ptr->sig_bit.red);
845  } else
846  if ((info_ptr->color_type == PNG_COLOR_TYPE_GRAY ||
847  info_ptr->color_type == PNG_COLOR_TYPE_GRAY_ALPHA) &&
848  (info_ptr->sig_bit.gray < info_ptr->bit_depth)) {
849  png_set_shift (png_ptr, &(info_ptr->sig_bit));
850  maxval = (1l << info_ptr->sig_bit.gray) - 1;
851  if (verbose)
852  pm_message ("image has fewer significant bits, writing file with %d bits",
853  info_ptr->sig_bit.gray);
854  }
855  }
856  break;
857 
858  case alpha_only:
859  if ((info_ptr->color_type == PNG_COLOR_TYPE_RGB_ALPHA ||
860  info_ptr->color_type == PNG_COLOR_TYPE_GRAY_ALPHA) &&
861  (info_ptr->sig_bit.gray < info_ptr->bit_depth)) {
862  png_set_shift (png_ptr, &(info_ptr->sig_bit));
863  if (verbose)
864  pm_message ("image has fewer significant bits, writing file with %d bits",
865  info_ptr->sig_bit.alpha);
866  maxval = (1l << info_ptr->sig_bit.alpha) - 1;
867  }
868  break;
869 
870  }
871  }
872 
873  /* didn't manage to get libpng to work (bugs?) concerning background */
874  /* processing, therefore we do our own using bgr, bgg and bgb */
875  if (info_ptr->valid & PNG_INFO_bKGD)
876  switch (info_ptr->color_type) {
877  case PNG_COLOR_TYPE_GRAY:
879  bgr = bgg = bgb = gamma_correct (info_ptr->background.gray, totalgamma);
880  break;
882  bgr = gamma_correct (info_ptr->palette[info_ptr->background.index].red, totalgamma);
883  bgg = gamma_correct (info_ptr->palette[info_ptr->background.index].green, totalgamma);
884  bgb = gamma_correct (info_ptr->palette[info_ptr->background.index].blue, totalgamma);
885  break;
886  case PNG_COLOR_TYPE_RGB:
888  bgr = gamma_correct (info_ptr->background.red, totalgamma);
889  bgg = gamma_correct (info_ptr->background.green, totalgamma);
890  bgb = gamma_correct (info_ptr->background.blue, totalgamma);
891  break;
892  }
893  else
894  /* when no background given, we use white [from version 2.37] */
895  bgr = bgg = bgb = maxval;
896 
897  /* but if background was specified from the command-line, we always use that */
898  /* I chose to do no gamma-correction in this case; which is a bit arbitrary */
899  if (background > -1)
900  {
902  switch (info_ptr->color_type) {
903  case PNG_COLOR_TYPE_GRAY:
905  bgr = bgg = bgb = PNM_GET1 (backcolor);
906  break;
908  case PNG_COLOR_TYPE_RGB:
910  bgr = PPM_GETR (backcolor);
911  bgg = PPM_GETG (backcolor);
912  bgb = PPM_GETB (backcolor);
913  break;
914  }
915  }
916 
917 #if PNG_LIBPNG_VER_MINOR > 4
918  png_ptr->transformations |= PNG_INTERLACE;
919 #endif
921  png_read_end (png_ptr, info_ptr);
922 
923  if (mtime)
924  show_time (info_ptr);
925  if (text)
926  save_text (info_ptr, tfp);
927 
928  if (info_ptr->valid & PNG_INFO_pHYs) {
929  float r;
930  r = (float)info_ptr->x_pixels_per_unit / info_ptr->y_pixels_per_unit;
931  if (r != 1.0) {
932  pm_message ("warning - non-square pixels; to fix do a 'pnmscale -%cscale %g'",
933  r < 1.0 ? 'x' : 'y',
934  r < 1.0 ? 1.0 / r : r );
935  }
936  }
937 
938  if ((row = pnm_allocrow (info_ptr->width)) == NULL) {
939  for (y = 0 ; y+0U < info_ptr->height ; y++)
940  free (png_image[y]);
941  free (png_image);
943  pm_closer (ifp);
944  { pm_error ("couldn't allocate space for image"); exit(1); }
945  }
946 
947  if (alpha == alpha_only) {
948  if (info_ptr->color_type == PNG_COLOR_TYPE_GRAY ||
949  info_ptr->color_type == PNG_COLOR_TYPE_RGB) {
950  pnm_type = PBM_TYPE;
951  } else
952  if (info_ptr->color_type == PNG_COLOR_TYPE_PALETTE) {
953  pnm_type = PBM_TYPE;
954  if (info_ptr->valid & PNG_INFO_tRNS) {
955  for (i = 0 ; i < info_ptr->num_trans ; i++) {
956  if (info_ptr->trans_alpha[i] != 0 && info_ptr->trans_alpha[i] != maxval) {
957  pnm_type = PGM_TYPE;
958  break;
959  }
960  }
961  }
962  } else {
963  if (maxval == 1)
964  pnm_type = PBM_TYPE;
965  else
966  pnm_type = PGM_TYPE;
967  }
968  } else {
969  if (info_ptr->color_type == PNG_COLOR_TYPE_GRAY ||
970  info_ptr->color_type == PNG_COLOR_TYPE_GRAY_ALPHA) {
971  if (info_ptr->bit_depth == 1) {
972  pnm_type = PBM_TYPE;
973  } else {
974  pnm_type = PGM_TYPE;
975  }
976  } else
977  if (info_ptr->color_type == PNG_COLOR_TYPE_PALETTE) {
978  pnm_type = PGM_TYPE;
979  for (i = 0 ; i < info_ptr->num_palette ; i++) {
980  if (iscolor (info_ptr->palette[i])) {
981  pnm_type = PPM_TYPE;
982  break;
983  }
984  }
985  } else {
986  pnm_type = PPM_TYPE;
987  }
988  }
989 
990  if ((pnm_type == PGM_TYPE) && (maxval > PGM_OVERALLMAXVAL))
992  else if ((pnm_type == PPM_TYPE) && (maxval > PPM_OVERALLMAXVAL))
994  else maxmaxval = maxval;
995 
996  if (verbose)
997  pm_message ("writing a %s file (maxval=%u)",
998  pnm_type == PBM_TYPE ? "PBM" :
999  pnm_type == PGM_TYPE ? "PGM" :
1000  pnm_type == PPM_TYPE ? "PPM" :
1001  "UNKNOWN!",
1002  maxmaxval);
1003 
1004  /* pnm_writepnminit (stdout, info_ptr->width, info_ptr->height, maxval, pnm_type, FALSE); */
1005  if (maxval>255) {
1006  fprintf(stderr, "supporting only 8-bit images\n");
1007  exit(1);
1008  }
1009  /* Dat: supporting only RAWBITS */
1010  switch (pnm_type) {
1011  case PBM_TYPE:
1012  fprintf(so,"P4 %lu %lu\n", 0LU+info_ptr->width, 0LU+info_ptr->height);
1013  break;
1014  case PGM_TYPE:
1015  fprintf(so,"P5 %lu %lu 255\n", 0LU+info_ptr->width, 0LU+info_ptr->height);
1016  break;
1017  case PPM_TYPE:
1018  fprintf(so,"P6 %lu %lu 255\n", 0LU+info_ptr->width, 0LU+info_ptr->height);
1019  break;
1020  default:
1021  assert(0);
1022  }
1023 
1024  for (y = 0 ; y+0U < info_ptr->height ; y++) {
1025  png_pixel = png_image[y];
1026  pnm_pixel = row;
1027  for (x = 0 ; x+0U < info_ptr->width ; x++) {
1028  c = get_png_val (png_pixel);
1029  switch (info_ptr->color_type) {
1030  case PNG_COLOR_TYPE_GRAY:
1031  store_pixel (pnm_pixel, c, c, c,
1032  ((info_ptr->valid & PNG_INFO_tRNS) &&
1033  (c == gamma_correct (info_ptr->trans_color.gray, totalgamma))) ?
1034  0 : maxval);
1035  break;
1036 
1038  a = get_png_val (png_pixel);
1039  store_pixel (pnm_pixel, c, c, c, a);
1040  break;
1041 
1043  store_pixel (pnm_pixel, info_ptr->palette[c].red,
1044  info_ptr->palette[c].green, info_ptr->palette[c].blue,
1045  (info_ptr->valid & PNG_INFO_tRNS) &&
1046  c<info_ptr->num_trans ?
1047  info_ptr->trans_alpha[c] : maxval);
1048  break;
1049 
1050  case PNG_COLOR_TYPE_RGB:
1051  c2 = get_png_val (png_pixel);
1052  c3 = get_png_val (png_pixel);
1053  store_pixel (pnm_pixel, c, c2, c3,
1054  ((info_ptr->valid & PNG_INFO_tRNS) &&
1055  (c == gamma_correct (info_ptr->trans_color.red, totalgamma)) &&
1056  (c2 == gamma_correct (info_ptr->trans_color.green, totalgamma)) &&
1057  (c3 == gamma_correct (info_ptr->trans_color.blue, totalgamma))) ?
1058  0 : maxval);
1059  break;
1060 
1062  c2 = get_png_val (png_pixel);
1063  c3 = get_png_val (png_pixel);
1064  a = get_png_val (png_pixel);
1065  store_pixel (pnm_pixel, c, c2, c3, a);
1066  break;
1067 
1068  default:
1069  pnm_freerow (row);
1070  for (i = 0 ; i+0U < info_ptr->height ; i++)
1071  free (png_image[i]);
1072  free (png_image);
1074  pm_closer (ifp);
1075  { pm_error ("unknown PNG color type"); exit(1); }
1076  }
1077  pnm_pixel++;
1078  }
1079 
1080  /* pnm_writepnmrow (stdout, row, info_ptr->width, maxval, pnm_type, FALSE); */
1081  {
1082  unsigned wd=info_ptr->width, len, cc=1;
1083  char *rowa, *p;
1084  register xel *xP=row;
1085  /* Imp: eliminate several pm_allocrow */
1086  switch (pnm_type) {
1087  case PBM_TYPE:
1088  p=rowa=pm_allocrow(len=(wd+7)>>3, 1);
1089  while (wd--!=0) {
1090  if ((cc&256)!=0) { *p++=cc; cc=1; }
1091  cc<<=1;
1092  cc|=PNM_GET1( *xP ) == 0;
1093  xP++;
1094  }
1095  if (cc!=1) {
1096  while ((cc&256)==0) cc<<=1;
1097  *p++=cc; cc=1;
1098  }
1099  assert(p==rowa+len);
1100  break;
1101  case PGM_TYPE:
1102  p=rowa=pm_allocrow(wd, 1); len=wd;
1103  while (wd--!=0) {
1104  *p++=PPM_GETB(*xP); xP++;
1105  }
1106  break;
1107  case PPM_TYPE:
1108  p=rowa=pm_allocrow(wd, 3); len=wd*3;
1109  while (wd--!=0) {
1110  /* printf("X %d\n", wd); fflush(stdout); */
1111  *p++=PPM_GETR(*xP);
1112  *p++=PPM_GETG(*xP);
1113  *p++=PPM_GETB(*xP); xP++;
1114  }
1115  break;
1116  default:
1117  assert(0);
1118  }
1119  fwrite(rowa, 1, len, so);
1120  pm_freerow(rowa);
1121  }
1122 
1123 #if 0
1124 #if __STDC__
1125 void
1126 pnm_writepnmrow( FILE* file, xel* xelrow, int cols, xelval maxval, int format, int forceplain )
1127 #else /*__STDC__*/
1128 void
1129 pnm_writepnmrow( file, xelrow, cols, maxval, format, forceplain )
1130  FILE* file;
1131  xel* xelrow;
1132  int cols, format;
1133  xelval maxval;
1134  int forceplain;
1135 #endif /*__STDC__*/
1136  {
1137  register int col;
1138  register xel* xP;
1139  gray* grayrow;
1140  register gray* gP;
1141  bit* bitrow;
1142  register bit* bP;
1143 
1144  switch ( PNM_FORMAT_TYPE(format) )
1145  {
1146  case PPM_TYPE:
1147  ppm_writeppmrow( file, (pixel*) xelrow, cols, (pixval) maxval, forceplain );
1148  break;
1149 
1150  case PGM_TYPE:
1151  grayrow = pgm_allocrow( cols );
1152  for ( col = 0, gP = grayrow, xP = xelrow; col < cols; ++col, ++gP, ++xP )
1153  *gP = PNM_GET1( *xP );
1154  pgm_writepgmrow( file, grayrow, cols, (gray) maxval, forceplain );
1155  pgm_freerow( grayrow );
1156  break;
1157 
1158  case PBM_TYPE:
1159  bitrow = pbm_allocrow( cols );
1160  for ( col = 0, bP = bitrow, xP = xelrow; col < cols; ++col, ++bP, ++xP )
1161  *bP = PNM_GET1( *xP ) == 0 ? PBM_BLACK : PBM_WHITE;
1162  pbm_writepbmrow( file, bitrow, cols, forceplain );
1163  pbm_freerow( bitrow );
1164  break;
1165 
1166  default:
1167  { pm_error( "invalid format argument received by pnm_writepnmrow(): %d\n"
1168  "PNM_FORMAT_TYPE(format) must be %d, %d, or %d",
1169  format, PBM_TYPE, PGM_TYPE, PPM_TYPE); exit(1); }
1170  }
1171  }
1172 #endif
1173 
1174  }
1175 
1176  fflush(so);
1177 #if DO_WIN
1178  fclose(so);
1179 #endif
1180  pnm_freerow (row);
1181  for (y = 0 ; y+8U < info_ptr->height ; y++)
1182  free (png_image[y]);
1183  free (png_image);
1185 }
1186 
1187 #ifdef __STDC__
1188 int main (int argc, char *argv[])
1189 #else
1191 int argc;
1192 char *argv[];
1193 #endif
1194 {
1195  FILE *ifp, *tfp;
1196  int argn;
1197 
1198  char *usage = "[-verbose] [-alpha | -mix | -rgba] [-background color] ...\n\
1199  ... [-gamma value] [-text file] [-time] [pngfile]";
1200 
1201  pnm_init (&argc, argv);
1202  argn = 1;
1203 
1204  /* stdout=stderr; */
1205 
1206  while (argn < argc && argv[argn][0] == '-' && argv[argn][1] != '\0') {
1207  if (pm_keymatch (argv[argn], "-verbose", 2)) {
1208  verbose = TRUE;
1209  } else if (pm_keymatch (argv[argn], "-alpha", 2)) {
1210  alpha = alpha_only;
1211  } else if (pm_keymatch (argv[argn], "-mix", 2)) {
1212  alpha = mix_only;
1213  } else if (pm_keymatch (argv[argn], "-rgba", 2)) {
1215  } else if (pm_keymatch (argv[argn], "-background", 2)) {
1216  background = 1;
1217  if (++argn < argc)
1218  backstring = argv[argn];
1219  else
1220  pm_usage (usage, stderr);
1221  } else
1222  if (pm_keymatch (argv[argn], "-gamma", 2)) {
1223  if (++argn < argc)
1224  sscanf (argv[argn], "%f", &displaygamma);
1225  else
1226  pm_usage (usage, stderr);
1227  } else
1228  if (pm_keymatch (argv[argn], "-text", 3)) {
1229  text = TRUE;
1230  if (++argn < argc)
1231  text_file = argv[argn];
1232  else
1233  pm_usage (usage, stderr);
1234  } else
1235  if (pm_keymatch (argv[argn], "-time", 3)) {
1236  mtime = TRUE;
1237  } else if (pm_keymatch (argv[argn], "-h", 3)) {
1238  fprintf(stdout,"png22pnm version %s, compiled with libpng version %s\n",
1240  pm_usage (usage, stdout);
1241  } else {
1242  pm_usage (usage, stderr);
1243  }
1244  argn++;
1245  }
1246 
1247  if (argn != argc) {
1248  ifp = pm_openr (argv[argn]);
1249  ++argn;
1250  } else {
1251  ifp = stdin;
1252  }
1253  if (argn != argc)
1254  pm_usage (usage, stderr);
1255 
1256  if (text)
1257  tfp = pm_openw (text_file);
1258  else
1259  tfp = NULL;
1260 
1261  convertpng (ifp, tfp);
1262  if (alpha==none_and_alpha) {
1263  alpha=alpha_only;
1264  rewind(ifp);
1265  if (ferror(ifp)) { pm_error( "cannot rewind() PNG file" ); exit(1); }
1266  convertpng(ifp, tfp);
1267  }
1268 
1269  if (text)
1270  pm_closew (tfp);
1271 
1272  pm_closer (ifp);
1273  pm_closew (stdout);
1274  exit (0);
1275 }
return _Result< 0 ? -1 :_Result;} #line 1069 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\corecrt_wstdio.h" __inline int __cdecl _vsnwprintf_s_l(wchar_t *const _Buffer, size_t const _BufferCount, size_t const _MaxCount, wchar_t const *const _Format, _locale_t const _Locale, va_list _ArgList) { int const _Result=__stdio_common_vsnwprintf_s((*__local_stdio_printf_options()), _Buffer, _BufferCount, _MaxCount, _Format, _Locale, _ArgList);return _Result< 0 ? -1 :_Result;} #line 1091 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\corecrt_wstdio.h" __inline int __cdecl _vsnwprintf_s(wchar_t *const _Buffer, size_t const _BufferCount, size_t const _MaxCount, wchar_t const *const _Format, va_list _ArgList) { return _vsnwprintf_s_l(_Buffer, _BufferCount, _MaxCount, _Format,((void *) 0), _ArgList);} #line 1108 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\corecrt_wstdio.h" __declspec(deprecated("This function or variable may be unsafe. Consider using " "_snwprintf_s" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) __inline int __cdecl _snwprintf(wchar_t *_Buffer, size_t _BufferCount, wchar_t const *_Format,...);__declspec(deprecated("This function or variable may be unsafe. Consider using " "_vsnwprintf_s" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) __inline int __cdecl _vsnwprintf(wchar_t *_Buffer, size_t _BufferCount, wchar_t const *_Format, va_list _Args);__declspec(deprecated("This function or variable may be unsafe. Consider using " "_vsnwprintf_s" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) __inline int __cdecl _vsnwprintf(wchar_t *_Buffer, size_t _BufferCount, wchar_t const *_Format, va_list _ArgList) { return _vsnwprintf_l(_Buffer, _BufferCount, _Format,((void *) 0), _ArgList);} #line 1133 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\corecrt_wstdio.h" __inline int __cdecl _vswprintf_c_l(wchar_t *const _Buffer, size_t const _BufferCount, wchar_t const *const _Format, _locale_t const _Locale, va_list _ArgList) { int const _Result=__stdio_common_vswprintf((*__local_stdio_printf_options()), _Buffer, _BufferCount, _Format, _Locale, _ArgList);return _Result< 0 ? -1 :_Result;} #line 1163 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\corecrt_wstdio.h" __inline int __cdecl _vswprintf_c(wchar_t *const _Buffer, size_t const _BufferCount, wchar_t const *const _Format, va_list _ArgList) { return _vswprintf_c_l(_Buffer, _BufferCount, _Format,((void *) 0), _ArgList);} #line 1179 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\corecrt_wstdio.h" __inline int __cdecl _vswprintf_l(wchar_t *const _Buffer, size_t const _BufferCount, wchar_t const *const _Format, _locale_t const _Locale, va_list _ArgList) { return _vswprintf_c_l(_Buffer, _BufferCount, _Format, _Locale, _ArgList);} #line 1196 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\corecrt_wstdio.h" __inline int __cdecl __vswprintf_l(wchar_t *const _Buffer, wchar_t const *const _Format, _locale_t const _Locale, va_list _ArgList) { return _vswprintf_l(_Buffer,(size_t) -1, _Format, _Locale, _ArgList);} #line 1212 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\corecrt_wstdio.h" __inline int __cdecl _vswprintf(wchar_t *const _Buffer, wchar_t const *const _Format, va_list _ArgList) { return _vswprintf_l(_Buffer,(size_t) -1, _Format,((void *) 0), _ArgList);} #line 1227 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\corecrt_wstdio.h" __inline int __cdecl vswprintf(wchar_t *const _Buffer, size_t const _BufferCount, wchar_t const *const _Format, va_list _ArgList) { return _vswprintf_c_l(_Buffer, _BufferCount, _Format,((void *) 0), _ArgList);} #line 1243 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\corecrt_wstdio.h" __inline int __cdecl _vswprintf_s_l(wchar_t *const _Buffer, size_t const _BufferCount, wchar_t const *const _Format, _locale_t const _Locale, va_list _ArgList) { int const _Result=__stdio_common_vswprintf_s((*__local_stdio_printf_options()), _Buffer, _BufferCount, _Format, _Locale, _ArgList);return _Result< 0 ? -1 :_Result;} #line 1264 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\corecrt_wstdio.h" __inline int __cdecl vswprintf_s(wchar_t *const _Buffer, size_t const _BufferCount, wchar_t const *const _Format, va_list _ArgList) { return _vswprintf_s_l(_Buffer, _BufferCount, _Format,((void *) 0), _ArgList);} #line 1281 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\corecrt_wstdio.h" #line 1283 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\corecrt_wstdio.h" __inline int __cdecl _vswprintf_p_l(wchar_t *const _Buffer, size_t const _BufferCount, wchar_t const *const _Format, _locale_t const _Locale, va_list _ArgList) { int const _Result=__stdio_common_vswprintf_p((*__local_stdio_printf_options()), _Buffer, _BufferCount, _Format, _Locale, _ArgList);return _Result< 0 ? -1 :_Result;} #line 1312 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\corecrt_wstdio.h" __inline int __cdecl _vswprintf_p(wchar_t *const _Buffer, size_t const _BufferCount, wchar_t const *const _Format, va_list _ArgList) { return _vswprintf_p_l(_Buffer, _BufferCount, _Format,((void *) 0), _ArgList);} #line 1328 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\corecrt_wstdio.h" __inline int __cdecl _vscwprintf_l(wchar_t const *const _Format, _locale_t const _Locale, va_list _ArgList) { int const _Result=__stdio_common_vswprintf((*__local_stdio_printf_options())|(1ULL<< 1),((void *) 0), 0, _Format, _Locale, _ArgList);return _Result< 0 ? -1 :_Result;} #line 1347 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\corecrt_wstdio.h" __inline int __cdecl _vscwprintf(wchar_t const *const _Format, va_list _ArgList) { return _vscwprintf_l(_Format,((void *) 0), _ArgList);} #line 1361 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\corecrt_wstdio.h" __inline int __cdecl _vscwprintf_p_l(wchar_t const *const _Format, _locale_t const _Locale, va_list _ArgList) { int const _Result=__stdio_common_vswprintf_p((*__local_stdio_printf_options())|(1ULL<< 1),((void *) 0), 0, _Format, _Locale, _ArgList);return _Result< 0 ? -1 :_Result;} #line 1380 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\corecrt_wstdio.h" __inline int __cdecl _vscwprintf_p(wchar_t const *const _Format, va_list _ArgList) { return _vscwprintf_p_l(_Format,((void *) 0), _ArgList);} #line 1394 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\corecrt_wstdio.h" __inline int __cdecl __swprintf_l(wchar_t *const _Buffer, wchar_t const *const _Format, _locale_t const _Locale,...) { int _Result;va_list _ArgList;((void)(_ArgList=(va_list)(&(_Locale))+((sizeof(_Locale)+sizeof(int) - 1) &~(sizeof(int) - 1)))) ;_Result=__vswprintf_l(_Buffer, _Format, _Locale, _ArgList);((void)(_ArgList=(va_list) 0)) ;return _Result;} #line 1414 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\corecrt_wstdio.h" __inline int __cdecl _swprintf_l(wchar_t *const _Buffer, size_t const _BufferCount, wchar_t const *const _Format, _locale_t const _Locale,...) { int _Result;va_list _ArgList;((void)(_ArgList=(va_list)(&(_Locale))+((sizeof(_Locale)+sizeof(int) - 1) &~(sizeof(int) - 1)))) ;_Result=_vswprintf_c_l(_Buffer, _BufferCount, _Format, _Locale, _ArgList);((void)(_ArgList=(va_list) 0)) ;return _Result;} #line 1435 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\corecrt_wstdio.h" __inline int __cdecl _swprintf(wchar_t *const _Buffer, wchar_t const *const _Format,...) { int _Result;va_list _ArgList;((void)(_ArgList=(va_list)(&(_Format))+((sizeof(_Format)+sizeof(int) - 1) &~(sizeof(int) - 1)))) ;_Result=__vswprintf_l(_Buffer, _Format,((void *) 0), _ArgList);((void)(_ArgList=(va_list) 0)) ;return _Result;} #line 1454 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\corecrt_wstdio.h" __inline int __cdecl swprintf(wchar_t *const _Buffer, size_t const _BufferCount, wchar_t const *const _Format,...) { int _Result;va_list _ArgList;((void)(_ArgList=(va_list)(&(_Format))+((sizeof(_Format)+sizeof(int) - 1) &~(sizeof(int) - 1)))) ;_Result=_vswprintf_c_l(_Buffer, _BufferCount, _Format,((void *) 0), _ArgList);((void)(_ArgList=(va_list) 0)) ;return _Result;} #line 1474 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\corecrt_wstdio.h" __declspec(deprecated("This function or variable may be unsafe. Consider using " "__swprintf_l_s" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) __inline int __cdecl __swprintf_l(wchar_t *_Buffer, wchar_t const *_Format, _locale_t _Locale,...);__declspec(deprecated("This function or variable may be unsafe. Consider using " "_vswprintf_s_l" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) __inline int __cdecl __vswprintf_l(wchar_t *_Buffer, wchar_t const *_Format, _locale_t _Locale, va_list _Args);__declspec(deprecated("This function or variable may be unsafe. Consider using " "swprintf_s" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) __inline int __cdecl _swprintf(wchar_t *_Buffer, wchar_t const *_Format,...);__declspec(deprecated("This function or variable may be unsafe. Consider using " "vswprintf_s" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) __inline int __cdecl _vswprintf(wchar_t *_Buffer, wchar_t const *_Format, va_list _Args);__inline int __cdecl _swprintf_s_l(wchar_t *const _Buffer, size_t const _BufferCount, wchar_t const *const _Format, _locale_t const _Locale,...) { int _Result;va_list _ArgList;((void)(_ArgList=(va_list)(&(_Locale))+((sizeof(_Locale)+sizeof(int) - 1) &~(sizeof(int) - 1)))) ;_Result=_vswprintf_s_l(_Buffer, _BufferCount, _Format, _Locale, _ArgList);((void)(_ArgList=(va_list) 0)) ;return _Result;} #line 1511 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\corecrt_wstdio.h" __inline int __cdecl swprintf_s(wchar_t *const _Buffer, size_t const _BufferCount, wchar_t const *const _Format,...) { int _Result;va_list _ArgList;((void)(_ArgList=(va_list)(&(_Format))+((sizeof(_Format)+sizeof(int) - 1) &~(sizeof(int) - 1)))) ;_Result=_vswprintf_s_l(_Buffer, _BufferCount, _Format,((void *) 0), _ArgList);((void)(_ArgList=(va_list) 0)) ;return _Result;} #line 1532 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\corecrt_wstdio.h" #line 1534 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\corecrt_wstdio.h" __inline int __cdecl _swprintf_p_l(wchar_t *const _Buffer, size_t const _BufferCount, wchar_t const *const _Format, _locale_t const _Locale,...) { int _Result;va_list _ArgList;((void)(_ArgList=(va_list)(&(_Locale))+((sizeof(_Locale)+sizeof(int) - 1) &~(sizeof(int) - 1)))) ;_Result=_vswprintf_p_l(_Buffer, _BufferCount, _Format, _Locale, _ArgList);((void)(_ArgList=(va_list) 0)) ;return _Result;} #line 1562 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\corecrt_wstdio.h" __inline int __cdecl _swprintf_p(wchar_t *const _Buffer, size_t const _BufferCount, wchar_t const *const _Format,...) { int _Result;va_list _ArgList;((void)(_ArgList=(va_list)(&(_Format))+((sizeof(_Format)+sizeof(int) - 1) &~(sizeof(int) - 1)))) ;_Result=_vswprintf_p_l(_Buffer, _BufferCount, _Format,((void *) 0), _ArgList);((void)(_ArgList=(va_list) 0)) ;return _Result;} #line 1582 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\corecrt_wstdio.h" __inline int __cdecl _swprintf_c_l(wchar_t *const _Buffer, size_t const _BufferCount, wchar_t const *const _Format, _locale_t const _Locale,...) { int _Result;va_list _ArgList;((void)(_ArgList=(va_list)(&(_Locale))+((sizeof(_Locale)+sizeof(int) - 1) &~(sizeof(int) - 1)))) ;_Result=_vswprintf_c_l(_Buffer, _BufferCount, _Format, _Locale, _ArgList);((void)(_ArgList=(va_list) 0)) ;return _Result;} #line 1603 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\corecrt_wstdio.h" __inline int __cdecl _swprintf_c(wchar_t *const _Buffer, size_t const _BufferCount, wchar_t const *const _Format,...) { int _Result;va_list _ArgList;((void)(_ArgList=(va_list)(&(_Format))+((sizeof(_Format)+sizeof(int) - 1) &~(sizeof(int) - 1)))) ;_Result=_vswprintf_c_l(_Buffer, _BufferCount, _Format,((void *) 0), _ArgList);((void)(_ArgList=(va_list) 0)) ;return _Result;} #line 1623 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\corecrt_wstdio.h" __declspec(deprecated("This function or variable may be unsafe. Consider using " "_snwprintf_s_l" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) __inline int __cdecl _snwprintf_l(wchar_t *const _Buffer, size_t const _BufferCount, wchar_t const *const _Format, _locale_t const _Locale,...) { int _Result;va_list _ArgList;((void)(_ArgList=(va_list)(&(_Locale))+((sizeof(_Locale)+sizeof(int) - 1) &~(sizeof(int) - 1)))) ;_Result=_vsnwprintf_l(_Buffer, _BufferCount, _Format, _Locale, _ArgList);((void)(_ArgList=(va_list) 0)) ;return _Result;} #line 1646 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\corecrt_wstdio.h" __inline int __cdecl _snwprintf(wchar_t *_Buffer, size_t _BufferCount, wchar_t const *_Format,...) { int _Result;va_list _ArgList;((void)(_ArgList=(va_list)(&(_Format))+((sizeof(_Format)+sizeof(int) - 1) &~(sizeof(int) - 1)))) ;_Result=_vsnwprintf_l(_Buffer, _BufferCount, _Format,((void *) 0), _ArgList);((void)(_ArgList=(va_list) 0)) ;return _Result;} #line 1668 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\corecrt_wstdio.h" __inline int __cdecl _snwprintf_s_l(wchar_t *const _Buffer, size_t const _BufferCount, size_t const _MaxCount, wchar_t const *const _Format, _locale_t const _Locale,...) { int _Result;va_list _ArgList;((void)(_ArgList=(va_list)(&(_Locale))+((sizeof(_Locale)+sizeof(int) - 1) &~(sizeof(int) - 1)))) ;_Result=_vsnwprintf_s_l(_Buffer, _BufferCount, _MaxCount, _Format, _Locale, _ArgList);((void)(_ArgList=(va_list) 0)) ;return _Result;} #line 1690 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\corecrt_wstdio.h" __inline int __cdecl _snwprintf_s(wchar_t *const _Buffer, size_t const _BufferCount, size_t const _MaxCount, wchar_t const *const _Format,...) { int _Result;va_list _ArgList;((void)(_ArgList=(va_list)(&(_Format))+((sizeof(_Format)+sizeof(int) - 1) &~(sizeof(int) - 1)))) ;_Result=_vsnwprintf_s_l(_Buffer, _BufferCount, _MaxCount, _Format,((void *) 0), _ArgList);((void)(_ArgList=(va_list) 0)) ;return _Result;} #line 1711 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\corecrt_wstdio.h" __inline int __cdecl _scwprintf_l(wchar_t const *const _Format, _locale_t const _Locale,...) { int _Result;va_list _ArgList;((void)(_ArgList=(va_list)(&(_Locale))+((sizeof(_Locale)+sizeof(int) - 1) &~(sizeof(int) - 1)))) ;_Result=_vscwprintf_l(_Format, _Locale, _ArgList);((void)(_ArgList=(va_list) 0)) ;return _Result;} #line 1737 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\corecrt_wstdio.h" __inline int __cdecl _scwprintf(wchar_t const *const _Format,...) { int _Result;va_list _ArgList;((void)(_ArgList=(va_list)(&(_Format))+((sizeof(_Format)+sizeof(int) - 1) &~(sizeof(int) - 1)))) ;_Result=_vscwprintf_l(_Format,((void *) 0), _ArgList);((void)(_ArgList=(va_list) 0)) ;return _Result;} #line 1755 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\corecrt_wstdio.h" __inline int __cdecl _scwprintf_p_l(wchar_t const *const _Format, _locale_t const _Locale,...) { int _Result;va_list _ArgList;((void)(_ArgList=(va_list)(&(_Locale))+((sizeof(_Locale)+sizeof(int) - 1) &~(sizeof(int) - 1)))) ;_Result=_vscwprintf_p_l(_Format, _Locale, _ArgList);((void)(_ArgList=(va_list) 0)) ;return _Result;} #line 1774 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\corecrt_wstdio.h" __inline int __cdecl _scwprintf_p(wchar_t const *const _Format,...) { int _Result;va_list _ArgList;((void)(_ArgList=(va_list)(&(_Format))+((sizeof(_Format)+sizeof(int) - 1) &~(sizeof(int) - 1)))) ;_Result=_vscwprintf_p_l(_Format,((void *) 0), _ArgList);((void)(_ArgList=(va_list) 0)) ;return _Result;} #line 1792 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\corecrt_wstdio.h" #pragma warning(push) #pragma warning(disable:4141 6054) #pragma warning(pop) #line 1856 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\corecrt_wstdio.h" int __cdecl __stdio_common_vswscanf(unsigned __int64 _Options, wchar_t const *_Buffer, size_t _BufferCount, wchar_t const *_Format, _locale_t _Locale, va_list _ArgList);__inline int __cdecl _vswscanf_l(wchar_t const *const _Buffer, wchar_t const *const _Format, _locale_t const _Locale, va_list _ArgList) { return __stdio_common_vswscanf((*__local_stdio_scanf_options()), _Buffer,(size_t) -1, _Format, _Locale, _ArgList);} #line 1897 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\corecrt_wstdio.h" __inline int __cdecl vswscanf(wchar_t const *_Buffer, wchar_t const *_Format, va_list _ArgList) { return _vswscanf_l(_Buffer, _Format,((void *) 0), _ArgList);} #line 1912 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\corecrt_wstdio.h" __inline int __cdecl _vswscanf_s_l(wchar_t const *const _Buffer, wchar_t const *const _Format, _locale_t const _Locale, va_list _ArgList) { return __stdio_common_vswscanf((*__local_stdio_scanf_options())|(1ULL<< 0), _Buffer,(size_t) -1, _Format, _Locale, _ArgList);} #line 1930 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\corecrt_wstdio.h" __inline int __cdecl vswscanf_s(wchar_t const *const _Buffer, wchar_t const *const _Format, va_list _ArgList) { return _vswscanf_s_l(_Buffer, _Format,((void *) 0), _ArgList);} #line 1947 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\corecrt_wstdio.h" #line 1949 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\corecrt_wstdio.h" __declspec(deprecated("This function or variable may be unsafe. Consider using " "_vsnwscanf_s_l" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) __inline int __cdecl _vsnwscanf_l(wchar_t const *const _Buffer, size_t const _BufferCount, wchar_t const *const _Format, _locale_t const _Locale, va_list _ArgList) { return __stdio_common_vswscanf((*__local_stdio_scanf_options()), _Buffer, _BufferCount, _Format, _Locale, _ArgList);} #line 1976 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\corecrt_wstdio.h" __inline int __cdecl _vsnwscanf_s_l(wchar_t const *const _Buffer, size_t const _BufferCount, wchar_t const *const _Format, _locale_t const _Locale, va_list _ArgList) { return __stdio_common_vswscanf((*__local_stdio_scanf_options())|(1ULL<< 0), _Buffer, _BufferCount, _Format, _Locale, _ArgList);} #line 1995 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\corecrt_wstdio.h" __declspec(deprecated("This function or variable may be unsafe. Consider using " "_swscanf_s_l" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) __inline int __cdecl _swscanf_l(wchar_t const *const _Buffer, wchar_t const *const _Format, _locale_t _Locale,...) { int _Result;va_list _ArgList;((void)(_ArgList=(va_list)(&(_Locale))+((sizeof(_Locale)+sizeof(int) - 1) &~(sizeof(int) - 1)))) ;_Result=_vswscanf_l(_Buffer, _Format, _Locale, _ArgList);((void)(_ArgList=(va_list) 0)) ;return _Result;} #line 2015 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\corecrt_wstdio.h" __declspec(deprecated("This function or variable may be unsafe. Consider using " "swscanf_s" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) __inline int __cdecl swscanf(wchar_t const *const _Buffer, wchar_t const *const _Format,...) { int _Result;va_list _ArgList;((void)(_ArgList=(va_list)(&(_Format))+((sizeof(_Format)+sizeof(int) - 1) &~(sizeof(int) - 1)))) ;_Result=_vswscanf_l(_Buffer, _Format,((void *) 0), _ArgList);((void)(_ArgList=(va_list) 0)) ;return _Result;} #line 2034 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\corecrt_wstdio.h" __inline int __cdecl _swscanf_s_l(wchar_t const *const _Buffer, wchar_t const *const _Format, _locale_t const _Locale,...) { int _Result;va_list _ArgList;((void)(_ArgList=(va_list)(&(_Locale))+((sizeof(_Locale)+sizeof(int) - 1) &~(sizeof(int) - 1)))) ;_Result=_vswscanf_s_l(_Buffer, _Format, _Locale, _ArgList);((void)(_ArgList=(va_list) 0)) ;return _Result;} #line 2054 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\corecrt_wstdio.h" __inline int __cdecl swscanf_s(wchar_t const *const _Buffer, wchar_t const *const _Format,...) { int _Result;va_list _ArgList;((void)(_ArgList=(va_list)(&(_Format))+((sizeof(_Format)+sizeof(int) - 1) &~(sizeof(int) - 1)))) ;_Result=_vswscanf_s_l(_Buffer, _Format,((void *) 0), _ArgList);((void)(_ArgList=(va_list) 0)) ;return _Result;} #line 2075 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\corecrt_wstdio.h" #line 2077 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\corecrt_wstdio.h" __declspec(deprecated("This function or variable may be unsafe. Consider using " "_snwscanf_s_l" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) __inline int __cdecl _snwscanf_l(wchar_t const *const _Buffer, size_t const _BufferCount, wchar_t const *const _Format, _locale_t const _Locale,...) { int _Result;va_list _ArgList;((void)(_ArgList=(va_list)(&(_Locale))+((sizeof(_Locale)+sizeof(int) - 1) &~(sizeof(int) - 1)))) ;_Result=_vsnwscanf_l(_Buffer, _BufferCount, _Format, _Locale, _ArgList);((void)(_ArgList=(va_list) 0)) ;return _Result;} #line 2100 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\corecrt_wstdio.h" __declspec(deprecated("This function or variable may be unsafe. Consider using " "_snwscanf_s" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) __inline int __cdecl _snwscanf(wchar_t const *const _Buffer, size_t const _BufferCount, wchar_t const *const _Format,...) { int _Result;va_list _ArgList;((void)(_ArgList=(va_list)(&(_Format))+((sizeof(_Format)+sizeof(int) - 1) &~(sizeof(int) - 1)))) ;_Result=_vsnwscanf_l(_Buffer, _BufferCount, _Format,((void *) 0), _ArgList);((void)(_ArgList=(va_list) 0)) ;return _Result;} #line 2122 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\corecrt_wstdio.h" __inline int __cdecl _snwscanf_s_l(wchar_t const *const _Buffer, size_t const _BufferCount, wchar_t const *const _Format, _locale_t const _Locale,...) { int _Result;va_list _ArgList;((void)(_ArgList=(va_list)(&(_Locale))+((sizeof(_Locale)+sizeof(int) - 1) &~(sizeof(int) - 1)))) ;_Result=_vsnwscanf_s_l(_Buffer, _BufferCount, _Format, _Locale, _ArgList);((void)(_ArgList=(va_list) 0)) ;return _Result;} #line 2143 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\corecrt_wstdio.h" __inline int __cdecl _snwscanf_s(wchar_t const *const _Buffer, size_t const _BufferCount, wchar_t const *const _Format,...) { int _Result;va_list _ArgList;((void)(_ArgList=(va_list)(&(_Format))+((sizeof(_Format)+sizeof(int) - 1) &~(sizeof(int) - 1)))) ;_Result=_vsnwscanf_s_l(_Buffer, _BufferCount, _Format,((void *) 0), _ArgList);((void)(_ArgList=(va_list) 0)) ;return _Result;} #line 2163 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\corecrt_wstdio.h" __pragma(pack(pop))#pragma warning(pop) #pragma warning(push)#pragma warning(disable:4324 4514 4574 4710 4793 4820 4995 4996 28719 28726 28727) __pragma(pack(push, 8)) typedef __int64 fpos_t;errno_t __cdecl _get_stream_buffer_pointers(FILE *_Stream, char ***_Base, char ***_Pointer, int **_Count);errno_t __cdecl clearerr_s(FILE *_Stream);errno_t __cdecl fopen_s(FILE **_Stream, char const *_FileName, char const *_Mode);size_t __cdecl fread_s(void *_Buffer, size_t _BufferSize, size_t _ElementSize, size_t _ElementCount, FILE *_Stream);errno_t __cdecl freopen_s(FILE **_Stream, char const *_FileName, char const *_Mode, FILE *_OldStream);char *__cdecl gets_s(char *_Buffer, rsize_t _Size);errno_t __cdecl tmpfile_s(FILE **_Stream);errno_t __cdecl tmpnam_s(char *_Buffer, rsize_t _Size);#line 145 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" void __cdecl clearerr(FILE *_Stream);int __cdecl fclose(FILE *_Stream);int __cdecl _fcloseall(void);FILE *__cdecl _fdopen(int _FileHandle, char const *_Mode);int __cdecl feof(FILE *_Stream);int __cdecl ferror(FILE *_Stream);int __cdecl fflush(FILE *_Stream);int __cdecl fgetc(FILE *_Stream);int __cdecl _fgetchar(void);int __cdecl fgetpos(FILE *_Stream, fpos_t *_Position);char *__cdecl fgets(char *_Buffer, int _MaxCount, FILE *_Stream);int __cdecl _fileno(FILE *_Stream);int __cdecl _flushall(void);__declspec(deprecated("This function or variable may be unsafe. Consider using " "fopen_s" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) FILE *__cdecl fopen(char const *_FileName, char const *_Mode);int __cdecl fputc(int _Character, FILE *_Stream);int __cdecl _fputchar(int _Character);int __cdecl fputs(char const *_Buffer, FILE *_Stream);size_t __cdecl fread(void *_Buffer, size_t _ElementSize, size_t _ElementCount, FILE *_Stream);__declspec(deprecated("This function or variable may be unsafe. Consider using " "freopen_s" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) FILE *__cdecl freopen(char const *_FileName, char const *_Mode, FILE *_Stream);FILE *__cdecl _fsopen(char const *_FileName, char const *_Mode, int _ShFlag);int __cdecl fsetpos(FILE *_Stream, fpos_t const *_Position);int __cdecl fseek(FILE *_Stream, long _Offset, int _Origin);int __cdecl _fseeki64(FILE *_Stream, __int64 _Offset, int _Origin);long __cdecl ftell(FILE *_Stream);__int64 __cdecl _ftelli64(FILE *_Stream);size_t __cdecl fwrite(void const *_Buffer, size_t _ElementSize, size_t _ElementCount, FILE *_Stream);int __cdecl getc(FILE *_Stream);int __cdecl getchar(void);int __cdecl _getmaxstdio(void);int __cdecl _getw(FILE *_Stream);void __cdecl perror(char const *_ErrorMessage);int __cdecl _pclose(FILE *_Stream);FILE *__cdecl _popen(char const *_Command, char const *_Mode);#line 344 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" int __cdecl putc(int _Character, FILE *_Stream);int __cdecl putchar(int _Character);int __cdecl puts(char const *_Buffer);int __cdecl _putw(int _Word, FILE *_Stream);int __cdecl remove(char const *_FileName);int __cdecl rename(char const *_OldFileName, char const *_NewFileName);int __cdecl _unlink(char const *_FileName);__declspec(deprecated("The POSIX name for this item is deprecated. Instead, use the ISO C " "and C++ conformant name: " "_unlink" ". See online help for details.")) int __cdecl unlink(char const *_FileName);#line 391 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" void __cdecl rewind(FILE *_Stream);int __cdecl _rmtmp(void);__declspec(deprecated("This function or variable may be unsafe. Consider using " "setvbuf" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) void __cdecl setbuf(FILE *_Stream, char *_Buffer);int __cdecl _setmaxstdio(int _Maximum);int __cdecl setvbuf(FILE *_Stream, char *_Buffer, int _Mode, size_t _Size);__declspec(allocator) char *__cdecl _tempnam(char const *_DirectoryName, char const *_FilePrefix);__declspec(deprecated("This function or variable may be unsafe. Consider using " "tmpfile_s" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) FILE *__cdecl tmpfile(void);__declspec(deprecated("This function or variable may be unsafe. Consider using " "tmpnam_s" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) char *__cdecl tmpnam(char *_Buffer);int __cdecl ungetc(int _Character, FILE *_Stream);void __cdecl _lock_file(FILE *_Stream);void __cdecl _unlock_file(FILE *_Stream);int __cdecl _fclose_nolock(FILE *_Stream);int __cdecl _fflush_nolock(FILE *_Stream);int __cdecl _fgetc_nolock(FILE *_Stream);int __cdecl _fputc_nolock(int _Character, FILE *_Stream);size_t __cdecl _fread_nolock(void *_Buffer, size_t _ElementSize, size_t _ElementCount, FILE *_Stream);size_t __cdecl _fread_nolock_s(void *_Buffer, size_t _BufferSize, size_t _ElementSize, size_t _ElementCount, FILE *_Stream);int __cdecl _fseek_nolock(FILE *_Stream, long _Offset, int _Origin);int __cdecl _fseeki64_nolock(FILE *_Stream, __int64 _Offset, int _Origin);long __cdecl _ftell_nolock(FILE *_Stream);__int64 __cdecl _ftelli64_nolock(FILE *_Stream);size_t __cdecl _fwrite_nolock(void const *_Buffer, size_t _ElementSize, size_t _ElementCount, FILE *_Stream);int __cdecl _getc_nolock(FILE *_Stream);int __cdecl _putc_nolock(int _Character, FILE *_Stream);int __cdecl _ungetc_nolock(int _Character, FILE *_Stream);int *__cdecl __p__commode(void);#line 596 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" int __cdecl __stdio_common_vfprintf(unsigned __int64 _Options, FILE *_Stream, char const *_Format, _locale_t _Locale, va_list _ArgList);int __cdecl __stdio_common_vfprintf_s(unsigned __int64 _Options, FILE *_Stream, char const *_Format, _locale_t _Locale, va_list _ArgList);int __cdecl __stdio_common_vfprintf_p(unsigned __int64 _Options, FILE *_Stream, char const *_Format, _locale_t _Locale, va_list _ArgList);__inline int __cdecl _vfprintf_l(FILE *const _Stream, char const *const _Format, _locale_t const _Locale, va_list _ArgList) { return __stdio_common_vfprintf((*__local_stdio_printf_options()), _Stream, _Format, _Locale, _ArgList);} #line 648 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" __inline int __cdecl vfprintf(FILE *const _Stream, char const *const _Format, va_list _ArgList) { return _vfprintf_l(_Stream, _Format,((void *) 0), _ArgList);} #line 662 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" __inline int __cdecl _vfprintf_s_l(FILE *const _Stream, char const *const _Format, _locale_t const _Locale, va_list _ArgList) { return __stdio_common_vfprintf_s((*__local_stdio_printf_options()), _Stream, _Format, _Locale, _ArgList);} #line 677 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" __inline int __cdecl vfprintf_s(FILE *const _Stream, char const *const _Format, va_list _ArgList) { return _vfprintf_s_l(_Stream, _Format,((void *) 0), _ArgList);} #line 693 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" #line 695 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" __inline int __cdecl _vfprintf_p_l(FILE *const _Stream, char const *const _Format, _locale_t const _Locale, va_list _ArgList) { return __stdio_common_vfprintf_p((*__local_stdio_printf_options()), _Stream, _Format, _Locale, _ArgList);} #line 710 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" __inline int __cdecl _vfprintf_p(FILE *const _Stream, char const *const _Format, va_list _ArgList) { return _vfprintf_p_l(_Stream, _Format,((void *) 0), _ArgList);} #line 724 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" __inline int __cdecl _vprintf_l(char const *const _Format, _locale_t const _Locale, va_list _ArgList) { return _vfprintf_l((__acrt_iob_func(1)), _Format, _Locale, _ArgList);} #line 738 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" __inline int __cdecl vprintf(char const *const _Format, va_list _ArgList) { return _vfprintf_l((__acrt_iob_func(1)), _Format,((void *) 0), _ArgList);} #line 751 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" __inline int __cdecl _vprintf_s_l(char const *const _Format, _locale_t const _Locale, va_list _ArgList) { return _vfprintf_s_l((__acrt_iob_func(1)), _Format, _Locale, _ArgList);} #line 765 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" __inline int __cdecl vprintf_s(char const *const _Format, va_list _ArgList) { return _vfprintf_s_l((__acrt_iob_func(1)), _Format,((void *) 0), _ArgList);} #line 780 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" #line 782 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" __inline int __cdecl _vprintf_p_l(char const *const _Format, _locale_t const _Locale, va_list _ArgList) { return _vfprintf_p_l((__acrt_iob_func(1)), _Format, _Locale, _ArgList);} #line 796 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" __inline int __cdecl _vprintf_p(char const *const _Format, va_list _ArgList) { return _vfprintf_p_l((__acrt_iob_func(1)), _Format,((void *) 0), _ArgList);} #line 809 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" __inline int __cdecl _fprintf_l(FILE *const _Stream, char const *const _Format, _locale_t const _Locale,...) { int _Result;va_list _ArgList;((void)(_ArgList=(va_list)(&(_Locale))+((sizeof(_Locale)+sizeof(int) - 1) &~(sizeof(int) - 1)))) ;_Result=_vfprintf_l(_Stream, _Format, _Locale, _ArgList);((void)(_ArgList=(va_list) 0)) ;return _Result;} #line 828 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" __inline int __cdecl fprintf(FILE *const _Stream, char const *const _Format,...) { int _Result;va_list _ArgList;((void)(_ArgList=(va_list)(&(_Format))+((sizeof(_Format)+sizeof(int) - 1) &~(sizeof(int) - 1)))) ;_Result=_vfprintf_l(_Stream, _Format,((void *) 0), _ArgList);((void)(_ArgList=(va_list) 0)) ;return _Result;} #line 846 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" int __cdecl _set_printf_count_output(int _Value);int __cdecl _get_printf_count_output(void);__inline int __cdecl _fprintf_s_l(FILE *const _Stream, char const *const _Format, _locale_t const _Locale,...) { int _Result;va_list _ArgList;((void)(_ArgList=(va_list)(&(_Locale))+((sizeof(_Locale)+sizeof(int) - 1) &~(sizeof(int) - 1)))) ;_Result=_vfprintf_s_l(_Stream, _Format, _Locale, _ArgList);((void)(_ArgList=(va_list) 0)) ;return _Result;} #line 871 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" __inline int __cdecl fprintf_s(FILE *const _Stream, char const *const _Format,...) { int _Result;va_list _ArgList;((void)(_ArgList=(va_list)(&(_Format))+((sizeof(_Format)+sizeof(int) - 1) &~(sizeof(int) - 1)))) ;_Result=_vfprintf_s_l(_Stream, _Format,((void *) 0), _ArgList);((void)(_ArgList=(va_list) 0)) ;return _Result;} #line 891 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" #line 893 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" __inline int __cdecl _fprintf_p_l(FILE *const _Stream, char const *const _Format, _locale_t const _Locale,...) { int _Result;va_list _ArgList;((void)(_ArgList=(va_list)(&(_Locale))+((sizeof(_Locale)+sizeof(int) - 1) &~(sizeof(int) - 1)))) ;_Result=_vfprintf_p_l(_Stream, _Format, _Locale, _ArgList);((void)(_ArgList=(va_list) 0)) ;return _Result;} #line 912 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" __inline int __cdecl _fprintf_p(FILE *const _Stream, char const *const _Format,...) { int _Result;va_list _ArgList;((void)(_ArgList=(va_list)(&(_Format))+((sizeof(_Format)+sizeof(int) - 1) &~(sizeof(int) - 1)))) ;_Result=_vfprintf_p_l(_Stream, _Format,((void *) 0), _ArgList);((void)(_ArgList=(va_list) 0)) ;return _Result;} #line 930 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" __inline int __cdecl _printf_l(char const *const _Format, _locale_t const _Locale,...) { int _Result;va_list _ArgList;((void)(_ArgList=(va_list)(&(_Locale))+((sizeof(_Locale)+sizeof(int) - 1) &~(sizeof(int) - 1)))) ;_Result=_vfprintf_l((__acrt_iob_func(1)), _Format, _Locale, _ArgList);((void)(_ArgList=(va_list) 0)) ;return _Result;} #line 948 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" __inline int __cdecl printf(char const *const _Format,...) { int _Result;va_list _ArgList;((void)(_ArgList=(va_list)(&(_Format))+((sizeof(_Format)+sizeof(int) - 1) &~(sizeof(int) - 1)))) ;_Result=_vfprintf_l((__acrt_iob_func(1)), _Format,((void *) 0), _ArgList);((void)(_ArgList=(va_list) 0)) ;return _Result;} #line 965 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" __inline int __cdecl _printf_s_l(char const *const _Format, _locale_t const _Locale,...) { int _Result;va_list _ArgList;((void)(_ArgList=(va_list)(&(_Locale))+((sizeof(_Locale)+sizeof(int) - 1) &~(sizeof(int) - 1)))) ;_Result=_vfprintf_s_l((__acrt_iob_func(1)), _Format, _Locale, _ArgList);((void)(_ArgList=(va_list) 0)) ;return _Result;} #line 983 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" __inline int __cdecl printf_s(char const *const _Format,...) { int _Result;va_list _ArgList;((void)(_ArgList=(va_list)(&(_Format))+((sizeof(_Format)+sizeof(int) - 1) &~(sizeof(int) - 1)))) ;_Result=_vfprintf_s_l((__acrt_iob_func(1)), _Format,((void *) 0), _ArgList);((void)(_ArgList=(va_list) 0)) ;return _Result;} #line 1002 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" #line 1004 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" __inline int __cdecl _printf_p_l(char const *const _Format, _locale_t const _Locale,...) { int _Result;va_list _ArgList;((void)(_ArgList=(va_list)(&(_Locale))+((sizeof(_Locale)+sizeof(int) - 1) &~(sizeof(int) - 1)))) ;_Result=_vfprintf_p_l((__acrt_iob_func(1)), _Format, _Locale, _ArgList);((void)(_ArgList=(va_list) 0)) ;return _Result;} #line 1022 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" __inline int __cdecl _printf_p(char const *const _Format,...) { int _Result;va_list _ArgList;((void)(_ArgList=(va_list)(&(_Format))+((sizeof(_Format)+sizeof(int) - 1) &~(sizeof(int) - 1)))) ;_Result=_vfprintf_p_l((__acrt_iob_func(1)), _Format,((void *) 0), _ArgList);((void)(_ArgList=(va_list) 0)) ;return _Result;} #line 1039 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" int __cdecl __stdio_common_vfscanf(unsigned __int64 _Options, FILE *_Stream, char const *_Format, _locale_t _Locale, va_list _Arglist);__inline int __cdecl _vfscanf_l(FILE *const _Stream, char const *const _Format, _locale_t const _Locale, va_list _ArgList) { return __stdio_common_vfscanf((*__local_stdio_scanf_options()), _Stream, _Format, _Locale, _ArgList);} #line 1070 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" __inline int __cdecl vfscanf(FILE *const _Stream, char const *const _Format, va_list _ArgList) { return _vfscanf_l(_Stream, _Format,((void *) 0), _ArgList);} #line 1084 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" __inline int __cdecl _vfscanf_s_l(FILE *const _Stream, char const *const _Format, _locale_t const _Locale, va_list _ArgList) { return __stdio_common_vfscanf((*__local_stdio_scanf_options())|(1ULL<< 0), _Stream, _Format, _Locale, _ArgList);} #line 1101 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" __inline int __cdecl vfscanf_s(FILE *const _Stream, char const *const _Format, va_list _ArgList) { return _vfscanf_s_l(_Stream, _Format,((void *) 0), _ArgList);} #line 1118 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" #line 1120 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" __inline int __cdecl _vscanf_l(char const *const _Format, _locale_t const _Locale, va_list _ArgList) { return _vfscanf_l((__acrt_iob_func(0)), _Format, _Locale, _ArgList);} #line 1134 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" __inline int __cdecl vscanf(char const *const _Format, va_list _ArgList) { return _vfscanf_l((__acrt_iob_func(0)), _Format,((void *) 0), _ArgList);} #line 1147 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" __inline int __cdecl _vscanf_s_l(char const *const _Format, _locale_t const _Locale, va_list _ArgList) { return _vfscanf_s_l((__acrt_iob_func(0)), _Format, _Locale, _ArgList);} #line 1161 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" __inline int __cdecl vscanf_s(char const *const _Format, va_list _ArgList) { return _vfscanf_s_l((__acrt_iob_func(0)), _Format,((void *) 0), _ArgList);} #line 1176 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" #line 1178 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" __declspec(deprecated("This function or variable may be unsafe. Consider using " "_fscanf_s_l" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) __inline int __cdecl _fscanf_l(FILE *const _Stream, char const *const _Format, _locale_t const _Locale,...) { int _Result;va_list _ArgList;((void)(_ArgList=(va_list)(&(_Locale))+((sizeof(_Locale)+sizeof(int) - 1) &~(sizeof(int) - 1)))) ;_Result=_vfscanf_l(_Stream, _Format, _Locale, _ArgList);((void)(_ArgList=(va_list) 0)) ;return _Result;} #line 1197 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" __declspec(deprecated("This function or variable may be unsafe. Consider using " "fscanf_s" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) __inline int __cdecl fscanf(FILE *const _Stream, char const *const _Format,...) { int _Result;va_list _ArgList;((void)(_ArgList=(va_list)(&(_Format))+((sizeof(_Format)+sizeof(int) - 1) &~(sizeof(int) - 1)))) ;_Result=_vfscanf_l(_Stream, _Format,((void *) 0), _ArgList);((void)(_ArgList=(va_list) 0)) ;return _Result;} #line 1215 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" __inline int __cdecl _fscanf_s_l(FILE *const _Stream, char const *const _Format, _locale_t const _Locale,...) { int _Result;va_list _ArgList;((void)(_ArgList=(va_list)(&(_Locale))+((sizeof(_Locale)+sizeof(int) - 1) &~(sizeof(int) - 1)))) ;_Result=_vfscanf_s_l(_Stream, _Format, _Locale, _ArgList);((void)(_ArgList=(va_list) 0)) ;return _Result;} #line 1234 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" __inline int __cdecl fscanf_s(FILE *const _Stream, char const *const _Format,...) { int _Result;va_list _ArgList;((void)(_ArgList=(va_list)(&(_Format))+((sizeof(_Format)+sizeof(int) - 1) &~(sizeof(int) - 1)))) ;_Result=_vfscanf_s_l(_Stream, _Format,((void *) 0), _ArgList);((void)(_ArgList=(va_list) 0)) ;return _Result;} #line 1254 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" #line 1256 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" __declspec(deprecated("This function or variable may be unsafe. Consider using " "_scanf_s_l" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) __inline int __cdecl _scanf_l(char const *const _Format, _locale_t const _Locale,...) { int _Result;va_list _ArgList;((void)(_ArgList=(va_list)(&(_Locale))+((sizeof(_Locale)+sizeof(int) - 1) &~(sizeof(int) - 1)))) ;_Result=_vfscanf_l((__acrt_iob_func(0)), _Format, _Locale, _ArgList);((void)(_ArgList=(va_list) 0)) ;return _Result;} #line 1274 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" __declspec(deprecated("This function or variable may be unsafe. Consider using " "scanf_s" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) __inline int __cdecl scanf(char const *const _Format,...) { int _Result;va_list _ArgList;((void)(_ArgList=(va_list)(&(_Format))+((sizeof(_Format)+sizeof(int) - 1) &~(sizeof(int) - 1)))) ;_Result=_vfscanf_l((__acrt_iob_func(0)), _Format,((void *) 0), _ArgList);((void)(_ArgList=(va_list) 0)) ;return _Result;} #line 1291 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" __inline int __cdecl _scanf_s_l(char const *const _Format, _locale_t const _Locale,...) { int _Result;va_list _ArgList;((void)(_ArgList=(va_list)(&(_Locale))+((sizeof(_Locale)+sizeof(int) - 1) &~(sizeof(int) - 1)))) ;_Result=_vfscanf_s_l((__acrt_iob_func(0)), _Format, _Locale, _ArgList);((void)(_ArgList=(va_list) 0)) ;return _Result;} #line 1309 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" __inline int __cdecl scanf_s(char const *const _Format,...) { int _Result;va_list _ArgList;((void)(_ArgList=(va_list)(&(_Format))+((sizeof(_Format)+sizeof(int) - 1) &~(sizeof(int) - 1)))) ;_Result=_vfscanf_s_l((__acrt_iob_func(0)), _Format,((void *) 0), _ArgList);((void)(_ArgList=(va_list) 0)) ;return _Result;} #line 1328 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" #line 1330 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" int __cdecl __stdio_common_vsprintf(unsigned __int64 _Options, char *_Buffer, size_t _BufferCount, char const *_Format, _locale_t _Locale, va_list _ArgList);int __cdecl __stdio_common_vsprintf_s(unsigned __int64 _Options, char *_Buffer, size_t _BufferCount, char const *_Format, _locale_t _Locale, va_list _ArgList);int __cdecl __stdio_common_vsnprintf_s(unsigned __int64 _Options, char *_Buffer, size_t _BufferCount, size_t _MaxCount, char const *_Format, _locale_t _Locale, va_list _ArgList);int __cdecl __stdio_common_vsprintf_p(unsigned __int64 _Options, char *_Buffer, size_t _BufferCount, char const *_Format, _locale_t _Locale, va_list _ArgList);__declspec(deprecated("This function or variable may be unsafe. Consider using " "_vsnprintf_s_l" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) __inline int __cdecl _vsnprintf_l(char *const _Buffer, size_t const _BufferCount, char const *const _Format, _locale_t const _Locale, va_list _ArgList) { int const _Result=__stdio_common_vsprintf((*__local_stdio_printf_options())|(1ULL<< 0), _Buffer, _BufferCount, _Format, _Locale, _ArgList);return _Result< 0 ? -1 :_Result;} #line 1399 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" __inline int __cdecl _vsnprintf(char *const _Buffer, size_t const _BufferCount, char const *const _Format, va_list _ArgList) { return _vsnprintf_l(_Buffer, _BufferCount, _Format,((void *) 0), _ArgList);} #line 1415 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" __inline int __cdecl vsnprintf(char *const _Buffer, size_t const _BufferCount, char const *const _Format, va_list _ArgList) { int const _Result=__stdio_common_vsprintf((*__local_stdio_printf_options())|(1ULL<< 1), _Buffer, _BufferCount, _Format,((void *) 0), _ArgList);return _Result< 0 ? -1 :_Result;} #line 1446 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" __declspec(deprecated("This function or variable may be unsafe. Consider using " "_vsprintf_s_l" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) __inline int __cdecl _vsprintf_l(char *const _Buffer, char const *const _Format, _locale_t const _Locale, va_list _ArgList) { return _vsnprintf_l(_Buffer,(size_t) -1, _Format, _Locale, _ArgList);} #line 1462 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" __declspec(deprecated("This function or variable may be unsafe. Consider using " "vsprintf_s" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) __inline int __cdecl vsprintf(char *const _Buffer, char const *const _Format, va_list _ArgList) { return _vsnprintf_l(_Buffer,(size_t) -1, _Format,((void *) 0), _ArgList);} #line 1477 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" __inline int __cdecl _vsprintf_s_l(char *const _Buffer, size_t const _BufferCount, char const *const _Format, _locale_t const _Locale, va_list _ArgList) { int const _Result=__stdio_common_vsprintf_s((*__local_stdio_printf_options()), _Buffer, _BufferCount, _Format, _Locale, _ArgList);return _Result< 0 ? -1 :_Result;} #line 1498 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" __inline int __cdecl vsprintf_s(char *const _Buffer, size_t const _BufferCount, char const *const _Format, va_list _ArgList) { return _vsprintf_s_l(_Buffer, _BufferCount, _Format,((void *) 0), _ArgList);} #line 1516 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" #line 1526 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" __inline int __cdecl _vsprintf_p_l(char *const _Buffer, size_t const _BufferCount, char const *const _Format, _locale_t const _Locale, va_list _ArgList) { int const _Result=__stdio_common_vsprintf_p((*__local_stdio_printf_options()), _Buffer, _BufferCount, _Format, _Locale, _ArgList);return _Result< 0 ? -1 :_Result;} #line 1547 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" __inline int __cdecl _vsprintf_p(char *const _Buffer, size_t const _BufferCount, char const *const _Format, va_list _ArgList) { return _vsprintf_p_l(_Buffer, _BufferCount, _Format,((void *) 0), _ArgList);} #line 1563 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" __inline int __cdecl _vsnprintf_s_l(char *const _Buffer, size_t const _BufferCount, size_t const _MaxCount, char const *const _Format, _locale_t const _Locale, va_list _ArgList) { int const _Result=__stdio_common_vsnprintf_s((*__local_stdio_printf_options()), _Buffer, _BufferCount, _MaxCount, _Format, _Locale, _ArgList);return _Result< 0 ? -1 :_Result;} #line 1585 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" __inline int __cdecl _vsnprintf_s(char *const _Buffer, size_t const _BufferCount, size_t const _MaxCount, char const *const _Format, va_list _ArgList) { return _vsnprintf_s_l(_Buffer, _BufferCount, _MaxCount, _Format,((void *) 0), _ArgList);} #line 1602 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" __inline int __cdecl vsnprintf_s(char *const _Buffer, size_t const _BufferCount, size_t const _MaxCount, char const *const _Format, va_list _ArgList) { return _vsnprintf_s_l(_Buffer, _BufferCount, _MaxCount, _Format,((void *) 0), _ArgList);} #line 1630 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" #line 1641 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" __inline int __cdecl _vscprintf_l(char const *const _Format, _locale_t const _Locale, va_list _ArgList) { int const _Result=__stdio_common_vsprintf((*__local_stdio_printf_options())|(1ULL<< 1),((void *) 0), 0, _Format, _Locale, _ArgList);return _Result< 0 ? -1 :_Result;} #line 1659 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" __inline int __cdecl _vscprintf(char const *const _Format, va_list _ArgList) { return _vscprintf_l(_Format,((void *) 0), _ArgList);} #line 1672 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" __inline int __cdecl _vscprintf_p_l(char const *const _Format, _locale_t const _Locale, va_list _ArgList) { int const _Result=__stdio_common_vsprintf_p((*__local_stdio_printf_options())|(1ULL<< 1),((void *) 0), 0, _Format, _Locale, _ArgList);return _Result< 0 ? -1 :_Result;} #line 1690 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" __inline int __cdecl _vscprintf_p(char const *const _Format, va_list _ArgList) { return _vscprintf_p_l(_Format,((void *) 0), _ArgList);} #line 1703 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" __inline int __cdecl _vsnprintf_c_l(char *const _Buffer, size_t const _BufferCount, char const *const _Format, _locale_t const _Locale, va_list _ArgList) { int const _Result=__stdio_common_vsprintf((*__local_stdio_printf_options()), _Buffer, _BufferCount, _Format, _Locale, _ArgList);return _Result< 0 ? -1 :_Result;} #line 1723 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" __inline int __cdecl _vsnprintf_c(char *const _Buffer, size_t const _BufferCount, char const *const _Format, va_list _ArgList) { return _vsnprintf_c_l(_Buffer, _BufferCount, _Format,((void *) 0), _ArgList);} #line 1739 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" __declspec(deprecated("This function or variable may be unsafe. Consider using " "_sprintf_s_l" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) __inline int __cdecl _sprintf_l(char *const _Buffer, char const *const _Format, _locale_t const _Locale,...) { int _Result;va_list _ArgList;((void)(_ArgList=(va_list)(&(_Locale))+((sizeof(_Locale)+sizeof(int) - 1) &~(sizeof(int) - 1)))) ;_Result=_vsprintf_l(_Buffer, _Format, _Locale, _ArgList);((void)(_ArgList=(va_list) 0)) ;return _Result;} #line 1761 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" __inline int __cdecl sprintf(char *const _Buffer, char const *const _Format,...) { int _Result;va_list _ArgList;((void)(_ArgList=(va_list)(&(_Format))+((sizeof(_Format)+sizeof(int) - 1) &~(sizeof(int) - 1)))) ;_Result=_vsprintf_l(_Buffer, _Format,((void *) 0), _ArgList);((void)(_ArgList=(va_list) 0)) ;return _Result;} #line 1782 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" __declspec(deprecated("This function or variable may be unsafe. Consider using " "sprintf_s" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) int __cdecl sprintf(char *_Buffer, char const *_Format,...);__declspec(deprecated("This function or variable may be unsafe. Consider using " "vsprintf_s" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) int __cdecl vsprintf(char *_Buffer, char const *_Format, va_list _Args);__inline int __cdecl _sprintf_s_l(char *const _Buffer, size_t const _BufferCount, char const *const _Format, _locale_t const _Locale,...) { int _Result;va_list _ArgList;((void)(_ArgList=(va_list)(&(_Locale))+((sizeof(_Locale)+sizeof(int) - 1) &~(sizeof(int) - 1)))) ;_Result=_vsprintf_s_l(_Buffer, _BufferCount, _Format, _Locale, _ArgList);((void)(_ArgList=(va_list) 0)) ;return _Result;} #line 1810 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" __inline int __cdecl sprintf_s(char *const _Buffer, size_t const _BufferCount, char const *const _Format,...) { int _Result;va_list _ArgList;((void)(_ArgList=(va_list)(&(_Format))+((sizeof(_Format)+sizeof(int) - 1) &~(sizeof(int) - 1)))) ;_Result=_vsprintf_s_l(_Buffer, _BufferCount, _Format,((void *) 0), _ArgList);((void)(_ArgList=(va_list) 0)) ;return _Result;} #line 1832 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" #line 1834 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" __inline int __cdecl _sprintf_p_l(char *const _Buffer, size_t const _BufferCount, char const *const _Format, _locale_t const _Locale,...) { int _Result;va_list _ArgList;((void)(_ArgList=(va_list)(&(_Locale))+((sizeof(_Locale)+sizeof(int) - 1) &~(sizeof(int) - 1)))) ;_Result=_vsprintf_p_l(_Buffer, _BufferCount, _Format, _Locale, _ArgList);((void)(_ArgList=(va_list) 0)) ;return _Result;} #line 1862 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" __inline int __cdecl _sprintf_p(char *const _Buffer, size_t const _BufferCount, char const *const _Format,...) { int _Result;va_list _ArgList;((void)(_ArgList=(va_list)(&(_Format))+((sizeof(_Format)+sizeof(int) - 1) &~(sizeof(int) - 1)))) ;_Result=_vsprintf_p_l(_Buffer, _BufferCount, _Format,((void *) 0), _ArgList);((void)(_ArgList=(va_list) 0)) ;return _Result;} #line 1882 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" __declspec(deprecated("This function or variable may be unsafe. Consider using " "_snprintf_s_l" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) __inline int __cdecl _snprintf_l(char *const _Buffer, size_t const _BufferCount, char const *const _Format, _locale_t const _Locale,...) { int _Result;va_list _ArgList;((void)(_ArgList=(va_list)(&(_Locale))+((sizeof(_Locale)+sizeof(int) - 1) &~(sizeof(int) - 1)))) ;_Result=_vsnprintf_l(_Buffer, _BufferCount, _Format, _Locale, _ArgList);((void)(_ArgList=(va_list) 0)) ;return _Result;} #line 1905 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" __inline int __cdecl snprintf(char *const _Buffer, size_t const _BufferCount, char const *const _Format,...) { int _Result;va_list _ArgList;((void)(_ArgList=(va_list)(&(_Format))+((sizeof(_Format)+sizeof(int) - 1) &~(sizeof(int) - 1)))) ;_Result=vsnprintf(_Buffer, _BufferCount, _Format, _ArgList);((void)(_ArgList=(va_list) 0)) ;return _Result;} #line 1936 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" __inline int __cdecl _snprintf(char *const _Buffer, size_t const _BufferCount, char const *const _Format,...) { int _Result;va_list _ArgList;((void)(_ArgList=(va_list)(&(_Format))+((sizeof(_Format)+sizeof(int) - 1) &~(sizeof(int) - 1)))) ;_Result=_vsnprintf(_Buffer, _BufferCount, _Format, _ArgList);((void)(_ArgList=(va_list) 0)) ;return _Result;} #line 1956 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" __declspec(deprecated("This function or variable may be unsafe. Consider using " "_snprintf_s" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) int __cdecl _snprintf(char *_Buffer, size_t _BufferCount, char const *_Format,...);__declspec(deprecated("This function or variable may be unsafe. Consider using " "_vsnprintf_s" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) int __cdecl _vsnprintf(char *_Buffer, size_t _BufferCount, char const *_Format, va_list _Args);__inline int __cdecl _snprintf_c_l(char *const _Buffer, size_t const _BufferCount, char const *const _Format, _locale_t const _Locale,...) { int _Result;va_list _ArgList;((void)(_ArgList=(va_list)(&(_Locale))+((sizeof(_Locale)+sizeof(int) - 1) &~(sizeof(int) - 1)))) ;_Result=_vsnprintf_c_l(_Buffer, _BufferCount, _Format, _Locale, _ArgList);((void)(_ArgList=(va_list) 0)) ;return _Result;} #line 1986 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" __inline int __cdecl _snprintf_c(char *const _Buffer, size_t const _BufferCount, char const *const _Format,...) { int _Result;va_list _ArgList;((void)(_ArgList=(va_list)(&(_Format))+((sizeof(_Format)+sizeof(int) - 1) &~(sizeof(int) - 1)))) ;_Result=_vsnprintf_c_l(_Buffer, _BufferCount, _Format,((void *) 0), _ArgList);((void)(_ArgList=(va_list) 0)) ;return _Result;} #line 2006 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" __inline int __cdecl _snprintf_s_l(char *const _Buffer, size_t const _BufferCount, size_t const _MaxCount, char const *const _Format, _locale_t const _Locale,...) { int _Result;va_list _ArgList;((void)(_ArgList=(va_list)(&(_Locale))+((sizeof(_Locale)+sizeof(int) - 1) &~(sizeof(int) - 1)))) ;_Result=_vsnprintf_s_l(_Buffer, _BufferCount, _MaxCount, _Format, _Locale, _ArgList);((void)(_ArgList=(va_list) 0)) ;return _Result;} #line 2028 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" __inline int __cdecl _snprintf_s(char *const _Buffer, size_t const _BufferCount, size_t const _MaxCount, char const *const _Format,...) { int _Result;va_list _ArgList;((void)(_ArgList=(va_list)(&(_Format))+((sizeof(_Format)+sizeof(int) - 1) &~(sizeof(int) - 1)))) ;_Result=_vsnprintf_s_l(_Buffer, _BufferCount, _MaxCount, _Format,((void *) 0), _ArgList);((void)(_ArgList=(va_list) 0)) ;return _Result;} #line 2049 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" __inline int __cdecl _scprintf_l(char const *const _Format, _locale_t const _Locale,...) { int _Result;va_list _ArgList;((void)(_ArgList=(va_list)(&(_Locale))+((sizeof(_Locale)+sizeof(int) - 1) &~(sizeof(int) - 1)))) ;_Result=_vscprintf_l(_Format, _Locale, _ArgList);((void)(_ArgList=(va_list) 0)) ;return _Result;} #line 2075 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" __inline int __cdecl _scprintf(char const *const _Format,...) { int _Result;va_list _ArgList;((void)(_ArgList=(va_list)(&(_Format))+((sizeof(_Format)+sizeof(int) - 1) &~(sizeof(int) - 1)))) ;_Result=_vscprintf_l(_Format,((void *) 0), _ArgList);((void)(_ArgList=(va_list) 0)) ;return _Result;} #line 2092 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" __inline int __cdecl _scprintf_p_l(char const *const _Format, _locale_t const _Locale,...) { int _Result;va_list _ArgList;((void)(_ArgList=(va_list)(&(_Locale))+((sizeof(_Locale)+sizeof(int) - 1) &~(sizeof(int) - 1)))) ;_Result=_vscprintf_p_l(_Format, _Locale, _ArgList);((void)(_ArgList=(va_list) 0)) ;return _Result;} #line 2110 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" __inline int __cdecl _scprintf_p(char const *const _Format,...) { int _Result;va_list _ArgList;((void)(_ArgList=(va_list)(&(_Format))+((sizeof(_Format)+sizeof(int) - 1) &~(sizeof(int) - 1)))) ;_Result=_vscprintf_p(_Format, _ArgList);((void)(_ArgList=(va_list) 0)) ;return _Result;} #line 2127 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" int __cdecl __stdio_common_vsscanf(unsigned __int64 _Options, char const *_Buffer, size_t _BufferCount, char const *_Format, _locale_t _Locale, va_list _ArgList);__inline int __cdecl _vsscanf_l(char const *const _Buffer, char const *const _Format, _locale_t const _Locale, va_list _ArgList) { return __stdio_common_vsscanf((*__local_stdio_scanf_options()), _Buffer,(size_t) -1, _Format, _Locale, _ArgList);} #line 2158 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" __inline int __cdecl vsscanf(char const *const _Buffer, char const *const _Format, va_list _ArgList) { return _vsscanf_l(_Buffer, _Format,((void *) 0), _ArgList);} #line 2172 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" __inline int __cdecl _vsscanf_s_l(char const *const _Buffer, char const *const _Format, _locale_t const _Locale, va_list _ArgList) { return __stdio_common_vsscanf((*__local_stdio_scanf_options())|(1ULL<< 0), _Buffer,(size_t) -1, _Format, _Locale, _ArgList);} #line 2189 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" #pragma warning(push) #pragma warning(disable:6530) __inline int __cdecl vsscanf_s(char const *const _Buffer, char const *const _Format, va_list _ArgList) { return _vsscanf_s_l(_Buffer, _Format,((void *) 0), _ArgList);} #line 2208 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" #pragma warning(pop) #line 2219 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" __declspec(deprecated("This function or variable may be unsafe. Consider using " "_sscanf_s_l" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) __inline int __cdecl _sscanf_l(char const *const _Buffer, char const *const _Format, _locale_t const _Locale,...) { int _Result;va_list _ArgList;((void)(_ArgList=(va_list)(&(_Locale))+((sizeof(_Locale)+sizeof(int) - 1) &~(sizeof(int) - 1)))) ;_Result=_vsscanf_l(_Buffer, _Format, _Locale, _ArgList);((void)(_ArgList=(va_list) 0)) ;return _Result;} #line 2238 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" __declspec(deprecated("This function or variable may be unsafe. Consider using " "sscanf_s" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) __inline int __cdecl sscanf(char const *const _Buffer, char const *const _Format,...) { int _Result;va_list _ArgList;((void)(_ArgList=(va_list)(&(_Format))+((sizeof(_Format)+sizeof(int) - 1) &~(sizeof(int) - 1)))) ;_Result=_vsscanf_l(_Buffer, _Format,((void *) 0), _ArgList);((void)(_ArgList=(va_list) 0)) ;return _Result;} #line 2256 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" __inline int __cdecl _sscanf_s_l(char const *const _Buffer, char const *const _Format, _locale_t const _Locale,...) { int _Result;va_list _ArgList;((void)(_ArgList=(va_list)(&(_Locale))+((sizeof(_Locale)+sizeof(int) - 1) &~(sizeof(int) - 1)))) ;_Result=_vsscanf_s_l(_Buffer, _Format, _Locale, _ArgList);((void)(_ArgList=(va_list) 0)) ;return _Result;} #line 2275 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" __inline int __cdecl sscanf_s(char const *const _Buffer, char const *const _Format,...) { int _Result;va_list _ArgList;((void)(_ArgList=(va_list)(&(_Format))+((sizeof(_Format)+sizeof(int) - 1) &~(sizeof(int) - 1)))) ;_Result=vsscanf_s(_Buffer, _Format, _ArgList);((void)(_ArgList=(va_list) 0)) ;return _Result;} #line 2297 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" #line 2299 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" #pragma warning(push) #pragma warning(disable:6530) __declspec(deprecated("This function or variable may be unsafe. Consider using " "_snscanf_s_l" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) __inline int __cdecl _snscanf_l(char const *const _Buffer, size_t const _BufferCount, char const *const _Format, _locale_t const _Locale,...) { int _Result;va_list _ArgList;((void)(_ArgList=(va_list)(&(_Locale))+((sizeof(_Locale)+sizeof(int) - 1) &~(sizeof(int) - 1)))) ;_Result=__stdio_common_vsscanf((*__local_stdio_scanf_options()), _Buffer, _BufferCount, _Format, _Locale, _ArgList);((void)(_ArgList=(va_list) 0)) ;return _Result;} #line 2326 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" __declspec(deprecated("This function or variable may be unsafe. Consider using " "_snscanf_s" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) __inline int __cdecl _snscanf(char const *const _Buffer, size_t const _BufferCount, char const *const _Format,...) { int _Result;va_list _ArgList;((void)(_ArgList=(va_list)(&(_Format))+((sizeof(_Format)+sizeof(int) - 1) &~(sizeof(int) - 1)))) ;_Result=__stdio_common_vsscanf((*__local_stdio_scanf_options()), _Buffer, _BufferCount, _Format,((void *) 0), _ArgList);((void)(_ArgList=(va_list) 0)) ;return _Result;} #line 2349 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" __inline int __cdecl _snscanf_s_l(char const *const _Buffer, size_t const _BufferCount, char const *const _Format, _locale_t const _Locale,...) { int _Result;va_list _ArgList;((void)(_ArgList=(va_list)(&(_Locale))+((sizeof(_Locale)+sizeof(int) - 1) &~(sizeof(int) - 1)))) ;_Result=__stdio_common_vsscanf((*__local_stdio_scanf_options())|(1ULL<< 0), _Buffer, _BufferCount, _Format, _Locale, _ArgList);((void)(_ArgList=(va_list) 0)) ;return _Result;} #line 2374 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" __inline int __cdecl _snscanf_s(char const *const _Buffer, size_t const _BufferCount, char const *const _Format,...) { int _Result;va_list _ArgList;((void)(_ArgList=(va_list)(&(_Format))+((sizeof(_Format)+sizeof(int) - 1) &~(sizeof(int) - 1)))) ;_Result=__stdio_common_vsscanf((*__local_stdio_scanf_options())|(1ULL<< 0), _Buffer, _BufferCount, _Format,((void *) 0), _ArgList);((void)(_ArgList=(va_list) 0)) ;return _Result;} #line 2397 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h" #pragma warning(pop) __declspec(deprecated("The POSIX name for this item is deprecated. Instead, use the ISO C " "and C++ conformant name: " "_tempnam" ". See online help for details.")) char *__cdecl tempnam(char const *_Directory, char const *_FilePrefix);__declspec(deprecated("The POSIX name for this item is deprecated. Instead, use the ISO C " "and C++ conformant name: " "_fcloseall" ". See online help for details.")) int __cdecl fcloseall(void);__declspec(deprecated("The POSIX name for this item is deprecated. Instead, use the ISO C " "and C++ conformant name: " "_fdopen" ". See online help for details.")) FILE *__cdecl fdopen(int _FileHandle, char const *_Format);__declspec(deprecated("The POSIX name for this item is deprecated. Instead, use the ISO C " "and C++ conformant name: " "_fgetchar" ". See online help for details.")) int __cdecl fgetchar(void);__declspec(deprecated("The POSIX name for this item is deprecated. Instead, use the ISO C " "and C++ conformant name: " "_fileno" ". See online help for details.")) int __cdecl fileno(FILE *_Stream);__declspec(deprecated("The POSIX name for this item is deprecated. Instead, use the ISO C " "and C++ conformant name: " "_flushall" ". See online help for details.")) int __cdecl flushall(void);__declspec(deprecated("The POSIX name for this item is deprecated. Instead, use the ISO C " "and C++ conformant name: " "_fputchar" ". See online help for details.")) int __cdecl fputchar(int _Ch);__declspec(deprecated("The POSIX name for this item is deprecated. Instead, use the ISO C " "and C++ conformant name: " "_getw" ". See online help for details.")) int __cdecl getw(FILE *_Stream);__declspec(deprecated("The POSIX name for this item is deprecated. Instead, use the ISO C " "and C++ conformant name: " "_putw" ". See online help for details.")) int __cdecl putw(int _Ch, FILE *_Stream);__declspec(deprecated("The POSIX name for this item is deprecated. Instead, use the ISO C " "and C++ conformant name: " "_rmtmp" ". See online help for details.")) int __cdecl rmtmp(void);#line 2441 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\stdio.h"__pragma(pack(pop))#pragma warning(pop) #pragma once#pragma once#pragma once#pragma once#pragma warning(push)#pragma warning(disable:4324 4514 4574 4710 4793 4820 4995 4996 28719 28726 28727) __pragma(pack(push, 8)) int *__cdecl _errno(void);errno_t __cdecl _set_errno(int _Value);errno_t __cdecl _get_errno(int *_Value);unsigned long *__cdecl __doserrno(void);errno_t __cdecl _set_doserrno(unsigned long _Value);errno_t __cdecl _get_doserrno(unsigned long *_Value);__pragma(pack(pop))#pragma warning(pop) #pragma once#pragma warning(push)#pragma warning(disable:4514 4820) __pragma(pack(push, 8)) void *__cdecl memchr(void const *_Buf, int _Val, size_t _MaxCount);int __cdecl memcmp(void const *_Buf1, void const *_Buf2, size_t _Size);void *__cdecl memcpy(void *_Dst, void const *_Src, size_t _Size);void *__cdecl memmove(void *_Dst, void const *_Src, size_t _Size);void *__cdecl memset(void *_Dst, int _Val, size_t _Size);char *__cdecl strchr(char const *_Str, int _Val);char *__cdecl strrchr(char const *_Str, int _Ch);char *__cdecl strstr(char const *_Str, char const *_SubStr);wchar_t *__cdecl wcschr(wchar_t const *_Str, wchar_t _Ch);wchar_t *__cdecl wcsrchr(wchar_t const *_Str, wchar_t _Ch);wchar_t *__cdecl wcsstr(wchar_t const *_Str, wchar_t const *_SubStr);__pragma(pack(pop))#pragma warning(pop) #pragma warning(push)#pragma warning(disable:4324 4514 4574 4710 4793 4820 4995 4996 28719 28726 28727) __pragma(pack(push, 8)) static __inline errno_t __cdecl memcpy_s(void *const _Destination, rsize_t const _DestinationSize, void const *const _Source, rsize_t const _SourceSize) { if(_SourceSize==0) { return 0;} { int _Expr_val=!!(_Destination !=((void *) 0));if(!(_Expr_val)) {(*_errno())=22;_invalid_parameter_noinfo();return 22;} } ;if(_Source==((void *) 0)||_DestinationSize< _SourceSize) { memset(_Destination, 0, _DestinationSize);{ int _Expr_val=!!(_Source !=((void *) 0));if(!(_Expr_val)) {(*_errno())=22;_invalid_parameter_noinfo();return 22;} } ;{ int _Expr_val=!!(_DestinationSize >=_SourceSize);if(!(_Expr_val)) {(*_errno())=34;_invalid_parameter_noinfo();return 34;} } ;return 22 ;} memcpy(_Destination, _Source, _SourceSize);return 0;} static __inline errno_t __cdecl memmove_s(void *const _Destination, rsize_t const _DestinationSize, void const *const _Source, rsize_t const _SourceSize) { if(_SourceSize==0) { return 0;} { int _Expr_val=!!(_Destination !=((void *) 0));if(!(_Expr_val)) {(*_errno())=22;_invalid_parameter_noinfo();return 22;} } ;{ int _Expr_val=!!(_Source !=((void *) 0));if(!(_Expr_val)) {(*_errno())=22;_invalid_parameter_noinfo();return 22;} } ;{ int _Expr_val=!!(_DestinationSize >=_SourceSize);if(!(_Expr_val)) {(*_errno())=34;_invalid_parameter_noinfo();return 34;} } ;memmove(_Destination, _Source, _SourceSize);return 0;}#pragma warning(pop) __pragma(pack(pop))#pragma warning(push)#pragma warning(disable:4324 4514 4574 4710 4793 4820 4995 4996 28719 28726 28727) __pragma(pack(push, 8)) int __cdecl _memicmp(void const *_Buf1, void const *_Buf2, size_t _Size);int __cdecl _memicmp_l(void const *_Buf1, void const *_Buf2, size_t _Size, _locale_t _Locale);__declspec(deprecated("The POSIX name for this item is deprecated. Instead, use the ISO C " "and C++ conformant name: " "_memccpy" ". See online help for details.")) void *__cdecl memccpy(void *_Dst, void const *_Src, int _Val, size_t _Size);__declspec(deprecated("The POSIX name for this item is deprecated. Instead, use the ISO C " "and C++ conformant name: " "_memicmp" ". See online help for details.")) int __cdecl memicmp(void const *_Buf1, void const *_Buf2, size_t _Size);__pragma(pack(pop))#pragma warning(pop) #pragma once#pragma warning(push)#pragma warning(disable:4324 4514 4574 4710 4793 4820 4995 4996 28719 28726 28727) __pragma(pack(push, 8)) errno_t __cdecl wcscat_s(wchar_t *_Destination, rsize_t _SizeInWords, wchar_t const *_Source);errno_t __cdecl wcscpy_s(wchar_t *_Destination, rsize_t _SizeInWords, wchar_t const *_Source);errno_t __cdecl wcsncat_s(wchar_t *_Destination, rsize_t _SizeInWords, wchar_t const *_Source, rsize_t _MaxCount);errno_t __cdecl wcsncpy_s(wchar_t *_Destination, rsize_t _SizeInWords, wchar_t const *_Source, rsize_t _MaxCount);wchar_t *__cdecl wcstok_s(wchar_t *_String, wchar_t const *_Delimiter, wchar_t **_Context);__declspec(allocator) wchar_t *__cdecl _wcsdup(wchar_t const *_String);__declspec(deprecated("This function or variable may be unsafe. Consider using " "wcscat_s" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) wchar_t *__cdecl wcscat(wchar_t *_Destination, wchar_t const *_Source);int __cdecl wcscmp(wchar_t const *_String1, wchar_t const *_String2);__declspec(deprecated("This function or variable may be unsafe. Consider using " "wcscpy_s" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) wchar_t *__cdecl wcscpy(wchar_t *_Destination, wchar_t const *_Source);size_t __cdecl wcscspn(wchar_t const *_String, wchar_t const *_Control);size_t __cdecl wcslen(wchar_t const *_String);size_t __cdecl wcsnlen(wchar_t const *_Source, size_t _MaxCount);static __inline size_t __cdecl wcsnlen_s(wchar_t const *_Source, size_t _MaxCount) { return(_Source==0) ? 0 :wcsnlen(_Source, _MaxCount);}__declspec(deprecated("This function or variable may be unsafe. Consider using " "wcsncat_s" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) wchar_t *__cdecl wcsncat(wchar_t *_Destination, wchar_t const *_Source, size_t _Count);int __cdecl wcsncmp(wchar_t const *_String1, wchar_t const *_String2, size_t _MaxCount);__declspec(deprecated("This function or variable may be unsafe. Consider using " "wcsncpy_s" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) wchar_t *__cdecl wcsncpy(wchar_t *_Destination, wchar_t const *_Source, size_t _Count);wchar_t *__cdecl wcspbrk(wchar_t const *_String, wchar_t const *_Control);size_t __cdecl wcsspn(wchar_t const *_String, wchar_t const *_Control);__declspec(deprecated("This function or variable may be unsafe. Consider using " "wcstok_s" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) wchar_t *__cdecl wcstok(wchar_t *_String, wchar_t const *_Delimiter, wchar_t **_Context);#line 237 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\corecrt_wstring.h" __declspec(deprecated("This function or variable may be unsafe. Consider using " "wcstok_s" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) static __inline wchar_t *__cdecl _wcstok(wchar_t *const _String, wchar_t const *const _Delimiter) { return wcstok(_String, _Delimiter, 0);} __declspec(deprecated("This function or variable may be unsafe. Consider using " "_wcserror_s" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) wchar_t *__cdecl _wcserror(int _ErrorNumber);errno_t __cdecl _wcserror_s(wchar_t *_Buffer, size_t _SizeInWords, int _ErrorNumber);__declspec(deprecated("This function or variable may be unsafe. Consider using " "__wcserror_s" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) wchar_t *__cdecl __wcserror(wchar_t const *_String);errno_t __cdecl __wcserror_s(wchar_t *_Buffer, size_t _SizeInWords, wchar_t const *_ErrorMessage);int __cdecl _wcsicmp(wchar_t const *_String1, wchar_t const *_String2);int __cdecl _wcsicmp_l(wchar_t const *_String1, wchar_t const *_String2, _locale_t _Locale);int __cdecl _wcsnicmp(wchar_t const *_String1, wchar_t const *_String2, size_t _MaxCount);int __cdecl _wcsnicmp_l(wchar_t const *_String1, wchar_t const *_String2, size_t _MaxCount, _locale_t _Locale);errno_t __cdecl _wcsnset_s(wchar_t *_Destination, size_t _SizeInWords, wchar_t _Value, size_t _MaxCount);__declspec(deprecated("This function or variable may be unsafe. Consider using " "_wcsnset_s" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) wchar_t *__cdecl _wcsnset(wchar_t *_String, wchar_t _Value, size_t _MaxCount);wchar_t *__cdecl _wcsrev(wchar_t *_String);errno_t __cdecl _wcsset_s(wchar_t *_Destination, size_t _SizeInWords, wchar_t _Value);__declspec(deprecated("This function or variable may be unsafe. Consider using " "_wcsset_s" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) wchar_t *__cdecl _wcsset(wchar_t *_String, wchar_t _Value);errno_t __cdecl _wcslwr_s(wchar_t *_String, size_t _SizeInWords);__declspec(deprecated("This function or variable may be unsafe. Consider using " "_wcslwr_s" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) wchar_t *__cdecl _wcslwr(wchar_t *_String);errno_t __cdecl _wcslwr_s_l(wchar_t *_String, size_t _SizeInWords, _locale_t _Locale);__declspec(deprecated("This function or variable may be unsafe. Consider using " "_wcslwr_s_l" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) wchar_t *__cdecl _wcslwr_l(wchar_t *_String, _locale_t _Locale);errno_t __cdecl _wcsupr_s(wchar_t *_String, size_t _Size);__declspec(deprecated("This function or variable may be unsafe. Consider using " "_wcsupr_s" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) wchar_t *__cdecl _wcsupr(wchar_t *_String);errno_t __cdecl _wcsupr_s_l(wchar_t *_String, size_t _Size, _locale_t _Locale);__declspec(deprecated("This function or variable may be unsafe. Consider using " "_wcsupr_s_l" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) wchar_t *__cdecl _wcsupr_l(wchar_t *_String, _locale_t _Locale);size_t __cdecl wcsxfrm(wchar_t *_Destination, wchar_t const *_Source, size_t _MaxCount);size_t __cdecl _wcsxfrm_l(wchar_t *_Destination, wchar_t const *_Source, size_t _MaxCount, _locale_t _Locale);int __cdecl wcscoll(wchar_t const *_String1, wchar_t const *_String2);int __cdecl _wcscoll_l(wchar_t const *_String1, wchar_t const *_String2, _locale_t _Locale);int __cdecl _wcsicoll(wchar_t const *_String1, wchar_t const *_String2);int __cdecl _wcsicoll_l(wchar_t const *_String1, wchar_t const *_String2, _locale_t _Locale);int __cdecl _wcsncoll(wchar_t const *_String1, wchar_t const *_String2, size_t _MaxCount);int __cdecl _wcsncoll_l(wchar_t const *_String1, wchar_t const *_String2, size_t _MaxCount, _locale_t _Locale);int __cdecl _wcsnicoll(wchar_t const *_String1, wchar_t const *_String2, size_t _MaxCount);int __cdecl _wcsnicoll_l(wchar_t const *_String1, wchar_t const *_String2, size_t _MaxCount, _locale_t _Locale);__declspec(deprecated("The POSIX name for this item is deprecated. Instead, use the ISO C " "and C++ conformant name: " "_wcsdup" ". See online help for details.")) wchar_t *__cdecl wcsdup(wchar_t const *_String);__declspec(deprecated("The POSIX name for this item is deprecated. Instead, use the ISO C " "and C++ conformant name: " "_wcsicmp" ". See online help for details.")) int __cdecl wcsicmp(wchar_t const *_String1, wchar_t const *_String2);__declspec(deprecated("The POSIX name for this item is deprecated. Instead, use the ISO C " "and C++ conformant name: " "_wcsnicmp" ". See online help for details.")) int __cdecl wcsnicmp(wchar_t const *_String1, wchar_t const *_String2, size_t _MaxCount);__declspec(deprecated("The POSIX name for this item is deprecated. Instead, use the ISO C " "and C++ conformant name: " "_wcsnset" ". See online help for details.")) wchar_t *__cdecl wcsnset(wchar_t *_String, wchar_t _Value, size_t _MaxCount);__declspec(deprecated("The POSIX name for this item is deprecated. Instead, use the ISO C " "and C++ conformant name: " "_wcsrev" ". See online help for details.")) wchar_t *__cdecl wcsrev(wchar_t *_String);__declspec(deprecated("The POSIX name for this item is deprecated. Instead, use the ISO C " "and C++ conformant name: " "_wcsset" ". See online help for details.")) wchar_t *__cdecl wcsset(wchar_t *_String, wchar_t _Value);__declspec(deprecated("The POSIX name for this item is deprecated. Instead, use the ISO C " "and C++ conformant name: " "_wcslwr" ". See online help for details.")) wchar_t *__cdecl wcslwr(wchar_t *_String);__declspec(deprecated("The POSIX name for this item is deprecated. Instead, use the ISO C " "and C++ conformant name: " "_wcsupr" ". See online help for details.")) wchar_t *__cdecl wcsupr(wchar_t *_String);__declspec(deprecated("The POSIX name for this item is deprecated. Instead, use the ISO C " "and C++ conformant name: " "_wcsicoll" ". See online help for details.")) int __cdecl wcsicoll(wchar_t const *_String1, wchar_t const *_String2);__pragma(pack(pop))#pragma warning(pop) #pragma warning(push)#pragma warning(disable:4324 4514 4574 4710 4793 4820 4995 4996 28719 28726 28727) __pragma(pack(push, 8)) errno_t __cdecl strcpy_s(char *_Destination, rsize_t _SizeInBytes, char const *_Source);errno_t __cdecl strcat_s(char *_Destination, rsize_t _SizeInBytes, char const *_Source);errno_t __cdecl strerror_s(char *_Buffer, size_t _SizeInBytes, int _ErrorNumber);errno_t __cdecl strncat_s(char *_Destination, rsize_t _SizeInBytes, char const *_Source, rsize_t _MaxCount);errno_t __cdecl strncpy_s(char *_Destination, rsize_t _SizeInBytes, char const *_Source, rsize_t _MaxCount);char *__cdecl strtok_s(char *_String, char const *_Delimiter, char **_Context);void *__cdecl _memccpy(void *_Dst, void const *_Src, int _Val, size_t _MaxCount);__declspec(deprecated("This function or variable may be unsafe. Consider using " "strcat_s" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) char *__cdecl strcat(char *_Destination, char const *_Source);int __cdecl strcmp(char const *_Str1, char const *_Str2);int __cdecl _strcmpi(char const *_String1, char const *_String2);int __cdecl strcoll(char const *_String1, char const *_String2);int __cdecl _strcoll_l(char const *_String1, char const *_String2, _locale_t _Locale);__declspec(deprecated("This function or variable may be unsafe. Consider using " "strcpy_s" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) char *__cdecl strcpy(char *_Destination, char const *_Source);size_t __cdecl strcspn(char const *_Str, char const *_Control);__declspec(allocator) char *__cdecl _strdup(char const *_Source);__declspec(deprecated("This function or variable may be unsafe. Consider using " "_strerror_s" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) char *__cdecl _strerror(char const *_ErrorMessage);errno_t __cdecl _strerror_s(char *_Buffer, size_t _SizeInBytes, char const *_ErrorMessage);__declspec(deprecated("This function or variable may be unsafe. Consider using " "strerror_s" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) char *__cdecl strerror(int _ErrorMessage);int __cdecl _stricmp(char const *_String1, char const *_String2);int __cdecl _stricoll(char const *_String1, char const *_String2);int __cdecl _stricoll_l(char const *_String1, char const *_String2, _locale_t _Locale);int __cdecl _stricmp_l(char const *_String1, char const *_String2, _locale_t _Locale);size_t __cdecl strlen(char const *_Str);errno_t __cdecl _strlwr_s(char *_String, size_t _Size);__declspec(deprecated("This function or variable may be unsafe. Consider using " "_strlwr_s" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) char *__cdecl _strlwr(char *_String);errno_t __cdecl _strlwr_s_l(char *_String, size_t _Size, _locale_t _Locale);__declspec(deprecated("This function or variable may be unsafe. Consider using " "_strlwr_s_l" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) char *__cdecl _strlwr_l(char *_String, _locale_t _Locale);__declspec(deprecated("This function or variable may be unsafe. Consider using " "strncat_s" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) char *__cdecl strncat(char *_Destination, char const *_Source, size_t _Count);int __cdecl strncmp(char const *_Str1, char const *_Str2, size_t _MaxCount);int __cdecl _strnicmp(char const *_String1, char const *_String2, size_t _MaxCount);int __cdecl _strnicmp_l(char const *_String1, char const *_String2, size_t _MaxCount, _locale_t _Locale);int __cdecl _strnicoll(char const *_String1, char const *_String2, size_t _MaxCount);int __cdecl _strnicoll_l(char const *_String1, char const *_String2, size_t _MaxCount, _locale_t _Locale);int __cdecl _strncoll(char const *_String1, char const *_String2, size_t _MaxCount);int __cdecl _strncoll_l(char const *_String1, char const *_String2, size_t _MaxCount, _locale_t _Locale);size_t __cdecl __strncnt(char const *_String, size_t _Count);__declspec(deprecated("This function or variable may be unsafe. Consider using " "strncpy_s" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) char *__cdecl strncpy(char *_Destination, char const *_Source, size_t _Count);size_t __cdecl strnlen(char const *_String, size_t _MaxCount);static __inline size_t __cdecl strnlen_s(char const *_String, size_t _MaxCount) { return _String==0 ? 0 :strnlen(_String, _MaxCount);} errno_t __cdecl _strnset_s(char *_String, size_t _SizeInBytes, int _Value, size_t _MaxCount);__declspec(deprecated("This function or variable may be unsafe. Consider using " "_strnset_s" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) char *__cdecl _strnset(char *_Destination, int _Value, size_t _Count);char *__cdecl strpbrk(char const *_Str, char const *_Control);char *__cdecl _strrev(char *_Str);errno_t __cdecl _strset_s(char *_Destination, size_t _DestinationSize, int _Value);__declspec(deprecated("This function or variable may be unsafe. Consider using " "_strset_s" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) char *__cdecl _strset(char *_Destination, int _Value);size_t __cdecl strspn(char const *_Str, char const *_Control);__declspec(deprecated("This function or variable may be unsafe. Consider using " "strtok_s" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) char *__cdecl strtok(char *_String, char const *_Delimiter);errno_t __cdecl _strupr_s(char *_String, size_t _Size);__declspec(deprecated("This function or variable may be unsafe. Consider using " "_strupr_s" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) char *__cdecl _strupr(char *_String);errno_t __cdecl _strupr_s_l(char *_String, size_t _Size, _locale_t _Locale);__declspec(deprecated("This function or variable may be unsafe. Consider using " "_strupr_s_l" " instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. " "See online help for details.")) char *__cdecl _strupr_l(char *_String, _locale_t _Locale);size_t __cdecl strxfrm(char *_Destination, char const *_Source, size_t _MaxCount);size_t __cdecl _strxfrm_l(char *_Destination, char const *_Source, size_t _MaxCount, _locale_t _Locale);__declspec(deprecated("The POSIX name for this item is deprecated. Instead, use the ISO C " "and C++ conformant name: " "_strdup" ". See online help for details.")) char *__cdecl strdup(char const *_String);__declspec(deprecated("The POSIX name for this item is deprecated. Instead, use the ISO C " "and C++ conformant name: " "_strcmpi" ". See online help for details.")) int __cdecl strcmpi(char const *_String1, char const *_String2);__declspec(deprecated("The POSIX name for this item is deprecated. Instead, use the ISO C " "and C++ conformant name: " "_stricmp" ". See online help for details.")) int __cdecl stricmp(char const *_String1, char const *_String2);__declspec(deprecated("The POSIX name for this item is deprecated. Instead, use the ISO C " "and C++ conformant name: " "_strlwr" ". See online help for details.")) char *__cdecl strlwr(char *_String);__declspec(deprecated("The POSIX name for this item is deprecated. Instead, use the ISO C " "and C++ conformant name: " "_strnicmp" ". See online help for details.")) int __cdecl strnicmp(char const *_String1, char const *_String2, size_t _MaxCount);__declspec(deprecated("The POSIX name for this item is deprecated. Instead, use the ISO C " "and C++ conformant name: " "_strnset" ". See online help for details.")) char *__cdecl strnset(char *_String, int _Value, size_t _MaxCount);__declspec(deprecated("The POSIX name for this item is deprecated. Instead, use the ISO C " "and C++ conformant name: " "_strrev" ". See online help for details.")) char *__cdecl strrev(char *_String);__declspec(deprecated("The POSIX name for this item is deprecated. Instead, use the ISO C " "and C++ conformant name: " "_strset" ". See online help for details.")) char *__cdecl strset(char *_String, int _Value);__declspec(deprecated("The POSIX name for this item is deprecated. Instead, use the ISO C " "and C++ conformant name: " "_strupr" ". See online help for details.")) char *__cdecl strupr(char *_String);__pragma(pack(pop))#pragma warning(pop) #pragma once#pragma warning(push)#pragma warning(disable:4514 4820) __pragma(pack(push, 8)) __pragma(pack(pop))#pragma warning(pop) #pragma once#pragma warning(push)#pragma warning(disable:4324 4514 4574 4710 4793 4820 4995 4996 28719 28726 28727) typedef unsigned short _ino_t;typedef _ino_t ino_t;#line 24 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\sys/types.h" typedef unsigned int _dev_t;typedef _dev_t dev_t;#line 36 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\sys/types.h" typedef long _off_t;typedef _off_t off_t;#line 48 "C:/Program Files (x86)/Windows Kits/10/include/10.0.19041.0/ucrt\\sys/types.h"#pragma warning(pop) typedef char *sds;#pragma pack(push, 1) struct sdshdr5 { unsigned char flags;char buf[];};struct sdshdr8 { uint8_t len;uint8_t alloc;unsigned char flags;char buf[];};struct sdshdr16 { uint16_t len;uint16_t alloc;unsigned char flags;char buf[];};struct sdshdr32 { uint32_t len;uint32_t alloc;unsigned char flags;char buf[];};struct sdshdr64 { uint64_t len;uint64_t alloc;unsigned char flags;char buf[];};#pragma pack(pop) static inline size_t sdslen(const sds s) { unsigned char flags=s[-1];switch(flags &7) { case 0 :return((flags) >> 3) ;case 1 :return((struct sdshdr8 *)((s) -(sizeof(struct sdshdr8)))) ->len;case 2 :return((struct sdshdr16 *)((s) -(sizeof(struct sdshdr16)))) ->len;case 3 :return((struct sdshdr32 *)((s) -(sizeof(struct sdshdr32)))) ->len;case 4 :return((struct sdshdr64 *)((s) -(sizeof(struct sdshdr64)))) ->len;} return 0;}static inline size_t sdsavail(const sds s) { unsigned char flags=s[-1];switch(flags &7) { case 0 :{ return 0;} case 1 :{ struct sdshdr8 *sh=(void *)((s) -(sizeof(struct sdshdr8)));;return sh->alloc - sh->len;} case 2 :{ struct sdshdr16 *sh=(void *)((s) -(sizeof(struct sdshdr16)));;return sh->alloc - sh->len;} case 3 :{ struct sdshdr32 *sh=(void *)((s) -(sizeof(struct sdshdr32)));;return sh->alloc - sh->len;} case 4 :{ struct sdshdr64 *sh=(void *)((s) -(sizeof(struct sdshdr64)));;return sh->alloc - sh->len;} } return 0;}static inline void sdssetlen(sds s, size_t newlen) { unsigned char flags=s[-1];switch(flags &7) { case 0 :{ unsigned char *fp=((unsigned char *) s) - 1;*fp=0|(newlen<< 3);} break;case 1 :((struct sdshdr8 *)((s) -(sizeof(struct sdshdr8)))) ->len=(uint8_t) newlen;break;case 2 :((struct sdshdr16 *)((s) -(sizeof(struct sdshdr16)))) ->len=(uint16_t) newlen;break;case 3 :((struct sdshdr32 *)((s) -(sizeof(struct sdshdr32)))) -> len
Definition: CPAL.d:15583
double __cdecl pow(double _X, double _Y)
cp
Definition: action.c:1035
#define name
#define month
Definition: aptex-macros.h:807
#define n
Definition: t4ht.c:1290
#define b
Definition: jpegint.h:372
#define free(a)
Definition: decNumber.cpp:310
int v
Definition: dviconv.c:10
#define fopen
Definition: xxstdio.h:21
#define fread
Definition: xxstdio.h:25
#define fflush
Definition: xxstdio.h:24
int strcmp()
Definition: coll.cpp:143
int sscanf()
char * strcpy()
mpz_t * f
Definition: gen-fib.c:34
mpz_t pp
Definition: gen-psqr.c:108
static char usage[]
Definition: giftopnm.c:59
#define c(n)
Definition: gpos-common.c:150
#define a(n)
Definition: gpos-common.c:148
int col
Definition: gsftopk.c:443
unsigned char * bP
Definition: hbf2gf.c:371
long grayrow[1023]
Definition: hbf2gf.c:383
pix
Definition: in_pcx.cpp:383
assert(pcxLoadImage24((char *)((void *) 0), fp, pinfo, hdr))
#define putc
Definition: jbib.h:20
#define NULL
Definition: ftobjs.h:61
small capitals from c petite p
Definition: afcover.h:72
small capitals from c petite p scientific i
Definition: afcover.h:80
sizeof(AF_ModuleRec)
void exit()
kerning y
Definition: ttdriver.c:212
int png_sig_cmp(png_const_bytep sig, size_t start, size_t num_to_check)
Definition: png.c:74
void png_set_sig_bytes(png_structrp png_ptr, int num_bytes)
Definition: png.c:47
void png_init_io(png_structrp png_ptr, png_FILE_p fp)
Definition: png.c:703
png_infop png_create_info_struct(png_const_structrp png_ptr)
Definition: png.c:354
png_structp() png_create_read_struct(png_const_charp user_png_ver, png_voidp error_ptr, png_error_ptr error_fn, png_error_ptr warn_fn)
Definition: pngread.c:27
#define PNG_INFO_gAMA
Definition: png.h:732
#define PNG_COLOR_TYPE_RGB
Definition: png.h:670
#define PNG_INFO_pHYs
Definition: png.h:739
#define PNG_COLOR_TYPE_RGB_ALPHA
Definition: png.h:671
#define PNG_COLOR_TYPE_GRAY_ALPHA
Definition: png.h:672
void() png_destroy_read_struct(png_structpp png_ptr_ptr, png_infopp info_ptr_ptr, png_infopp end_info_ptr_ptr)
Definition: pngread.c:1011
void() png_set_gamma(png_structrp png_ptr, double screen_gamma, double override_file_gamma)
Definition: pngrtran.c:858
void() png_read_end(png_structrp png_ptr, png_inforp info_ptr)
Definition: pngread.c:766
#define PNG_INFO_tIME
Definition: png.h:741
void() png_set_shift(png_structrp png_ptr, png_const_color_8p true_bits)
Definition: pngtrans.c:84
void() png_set_packing(png_structrp png_ptr)
Definition: pngtrans.c:50
void() png_read_image(png_structrp png_ptr, png_bytepp image)
Definition: pngread.c:700
#define PNG_INFO_sBIT
Definition: png.h:733
#define PNG_INFO_tRNS
Definition: png.h:736
#define PNG_COLOR_TYPE_GRAY
Definition: png.h:668
#define PNG_INFO_bKGD
Definition: png.h:737
#define PNG_COLOR_TYPE_PALETTE
Definition: png.h:669
#define PNG_LIBPNG_VER_STRING
Definition: png.h:281
void() png_read_info(png_structrp png_ptr, png_inforp info_ptr)
Definition: pngread.c:92
png_voidp() png_get_error_ptr(png_const_structrp png_ptr)
Definition: pngerror.c:856
unsigned short png_uint_16
Definition: pngconf.h:497
unsigned char png_byte
Definition: pngconf.h:481
size_t png_size_t
Definition: pngconf.h:523
const char * png_const_charp
Definition: pngconf.h:590
#define O_BINARY
Definition: config.h:393
#define fclose
Definition: debug.h:100
#define fileno
Definition: win32lib.h:72
#define fprintf
Definition: mendex.h:64
Code related to b fwrite(a, sizeof(char), b, stdout) @d C_printf(c
#define malloc
Definition: alloca.c:91
#define png_ptr(N)
Definition: image.h:99
FILE * text_file
Definition: tie.c:122
int setmode()
int dup()
void abort()
int strncmp()
#define sprintf
Definition: snprintf.c:44
float x
Definition: cordic.py:15
char msg[512]
Definition: nsfix.c:80
int k
Definition: otp-parser.c:70
void pbm_writepbmrow(FILE *file, bit *bitrow, int cols, int forceplain)
Definition: libpbm3.c:95
#define pbm_allocrow(cols)
Definition: pbm.h:36
unsigned char bit
Definition: pbm.h:9
#define pbm_freerow(bitrow)
Definition: pbm.h:38
#define PBM_BLACK
Definition: pbm.h:11
#define PBM_WHITE
Definition: pbm.h:10
static int format
Definition: pbmclean.c:15
static bit backcolor
Definition: pbmmask.c:20
static int cols
Definition: pbmmask.c:21
void pgm_writepgmrow(FILE *file, gray *grayrow, int cols, gray maxval, int forceplain)
Definition: libpgm2.c:125
#define pgm_allocrow(cols)
Definition: pgm.h:58
unsigned int gray
Definition: pgm.h:10
#define pgm_freerow(grayrow)
Definition: pgm.h:60
set set set set set set set macro pixldst1 abits if abits op else op endif endm macro pixldst2 abits if abits op else op endif endm macro pixldst4 abits if abits op else op endif endm macro pixldst0 abits op endm macro pixldst3 mem_operand op endm macro pixldst30 mem_operand op endm macro pixldst abits if abits elseif abits elseif abits elseif abits elseif abits pixldst0 abits else pixldst0 abits pixldst0 abits pixldst0 abits pixldst0 abits endif elseif abits else pixldst0 abits pixldst0 abits endif elseif abits else error unsupported bpp *numpix else pixst endif endm macro pixld1_s mem_operand if asr adds SRC_WIDTH_FIXED bpl add asl mov asr adds SRC_WIDTH_FIXED bpl add asl mov asr adds SRC_WIDTH_FIXED bpl add asl mov asr adds SRC_WIDTH_FIXED bpl add asl elseif asr adds SRC_WIDTH_FIXED bpl add asl mov asr adds SRC_WIDTH_FIXED bpl add asl else error unsupported endif endm macro pixld2_s mem_operand if mov asr add asl add asl mov asr sub UNIT_X add asl mov asr add asl add asl mov asr add UNIT_X add asl else pixld1_s mem_operand pixld1_s mem_operand endif endm macro pixld0_s mem_operand if asr adds SRC_WIDTH_FIXED bpl add asl elseif asr adds SRC_WIDTH_FIXED bpl add asl endif endm macro pixld_s_internal mem_operand if mem_operand pixld2_s mem_operand pixdeinterleave basereg elseif mem_operand elseif mem_operand elseif mem_operand elseif mem_operand pixld0_s mem_operand else pixld0_s mem_operand pixld0_s mem_operand pixld0_s mem_operand pixld0_s mem_operand endif elseif mem_operand else pixld0_s mem_operand pixld0_s mem_operand endif elseif mem_operand else error unsupported mem_operand if bpp mem_operand endif endm macro vuzp8 reg2 vuzp d d &reg2 endm macro vzip8 reg2 vzip d d &reg2 endm macro pixdeinterleave basereg basereg basereg basereg basereg endif endm macro pixinterleave basereg basereg basereg basereg basereg endif endm macro PF boost_increment endif if endif PF tst PF addne PF subne PF cmp ORIG_W if endif if endif if endif PF subge ORIG_W PF subges if endif if endif if endif endif endm macro cache_preload_simple endif if dst_r_bpp pld[DST_R, #(PREFETCH_DISTANCE_SIMPLE *dst_r_bpp/8)] endif if mask_bpp pld if[MASK, #(PREFETCH_DISTANCE_SIMPLE *mask_bpp/8)] endif endif endm macro fetch_mask_pixblock pixld mask_basereg pixblock_size MASK endm macro ensure_destination_ptr_alignment process_pixblock_tail_head if beq irp skip1(dst_w_bpp<=(lowbit *8)) &&((lowbit *8)<(pixblock_size *dst_w_bpp)) .if lowbit< 16 tst DST_R
#define pm_error
Definition: png22pnm.c:118
static void store_pixel(xel *pix, png_uint_16 r, png_uint_16 g, png_uint_16 b, png_uint_16 a)
Definition: png22pnm.c:441
pixel xel
Definition: png22pnm.c:139
static long rgbnorm(long rgb, long lmaxval, int n, char *colorname)
Definition: png22pnm.c:206
static int verbose
Definition: png22pnm.c:404
static float displaygamma
Definition: png22pnm.c:408
#define PPM_GETR(p)
Definition: png22pnm.c:124
#define PPM_ASSIGN(p, red, grn, blu)
Definition: png22pnm.c:132
#define _(args)
Definition: png22pnm.c:101
#define PBM_TYPE
Definition: png22pnm.c:111
static png_uint_16 bgg
Definition: png22pnm.c:403
static png_uint_16 bgr
Definition: png22pnm.c:403
#define VERSION
Definition: png22pnm.c:58
static void show_time(png_info *info_ptr)
Definition: png22pnm.c:521
static pixel ppm_parsecolor()
static png_uint_16 maxmaxval
Definition: png22pnm.c:402
#define PPM_OVERALLMAXVAL
Definition: png22pnm.c:64
#define PPM_GETG(p)
Definition: png22pnm.c:125
static int mtime
Definition: png22pnm.c:412
static png_uint_16 bgb
Definition: png22pnm.c:403
#define PNM_ASSIGN1(x, v)
Definition: png22pnm.c:137
static png_uint_16 maxval
Definition: png22pnm.c:402
#define SIG_CHECK_SIZE
Definition: png22pnm.c:570
#define pm_keymatch(stra, strb, _x)
Definition: png22pnm.c:121
static jmpbuf_wrapper pngtopnm_jmpbuf_struct
Definition: png22pnm.c:413
static void pngtopnm_error_handler(png_structp png_ptr, png_const_charp msg)
Definition: png22pnm.c:540
static int iscolor(png_color c)
Definition: png22pnm.c:476
unsigned pixval
Definition: png22pnm.c:110
static float totalgamma
Definition: png22pnm.c:409
static char * pm_allocrow(int cols, int size)
Definition: png22pnm.c:154
static png_uint_16 gamma_correct(png_uint_16 v, float g)
Definition: png22pnm.c:461
#define pm_closer
Definition: png22pnm.c:76
static void pm_usage(char usage[], FILE *f)
Definition: png22pnm.c:149
@ mix_only
Definition: png22pnm.c:400
@ none_and_alpha
Definition: png22pnm.c:400
@ none
Definition: png22pnm.c:400
@ alpha_only
Definition: png22pnm.c:400
#define PNM_GET1(x)
Definition: png22pnm.c:138
static void convertpng(FILE *ifp, FILE *tfp)
Definition: png22pnm.c:592
static png_uint_16 _get_png_val(png_byte **pp, int bit_depth)
Definition: png22pnm.c:420
#define pnm_init(_a, _b)
Definition: png22pnm.c:114
pixval xelval
Definition: png22pnm.c:140
static void save_text(png_info *info_ptr, FILE *tfp)
Definition: png22pnm.c:486
#define pnm_freerow(xelrow)
Definition: png22pnm.c:143
#define PGM_TYPE
Definition: png22pnm.c:112
static FILE * pm_openr(char *name)
Definition: png22pnm.c:166
#define PPM_GETB(p)
Definition: png22pnm.c:126
#define TRUE
Definition: png22pnm.c:81
#define FALSE
Definition: png22pnm.c:84
unsigned long pixel
Definition: png22pnm.c:123
#define get_png_val(p)
Definition: png22pnm.c:415
#define pm_closew
Definition: png22pnm.c:77
static char * text_file
Definition: png22pnm.c:411
static char * backstring
Definition: png22pnm.c:407
unsigned dimen_t
Definition: png22pnm.c:108
static enum alpha_handling alpha
Definition: png22pnm.c:405
static int background
Definition: png22pnm.c:406
#define pnm_allocrow(cols)
Definition: png22pnm.c:136
#define pm_freerow(x)
Definition: png22pnm.c:144
#define PGM_OVERALLMAXVAL
Definition: png22pnm.c:63
struct _jmpbuf_wrapper jmpbuf_wrapper
#define pm_message
Definition: png22pnm.c:116
static FILE * pm_openw(char *name)
Definition: png22pnm.c:186
#define PPM_TYPE
Definition: png22pnm.c:113
int main(int argc, argv)
Definition: png22pnm.c:1190
#define PNG_INTERLACE
Definition: pngeps.c:51
alpha_handling
Definition: pngtopnm.c:65
void pnm_writepnmrow(FILE *file, xel *xelrow, int cols, xelval maxval, int format, int forceplain)
Definition: libpnm2.c:62
#define PNM_FORMAT_TYPE(f)
Definition: pnm.h:15
pixval xelval
Definition: pnm.h:9
void ppm_writeppmrow(FILE *file, pixel *pixelrow, int cols, pixval maxval, int forceplain)
Definition: libppm2.c:129
gray pixval
Definition: ppm.h:9
static int size
Definition: ppmlabel.c:24
int g
Definition: ppmqvga.c:68
int r
Definition: ppmqvga.c:68
static int row
Definition: ps2pk.c:587
FILE * fdopen(int, const char *)
jmp_buf jmpbuf
Definition: pngtopnm.c:38
Definition: filedef.h:30
Definition: texview.c:48
Definition: ppm.h:33
int width
Definition: pngimage.h:56
int height
Definition: pngimage.h:57
Definition: jpegtopnm.c:237
#define c2
Definition: t1io.c:53
#define FILE
Definition: t1stdio.h:34
#define ferror(f)
Definition: t1stdio.h:110
int j
Definition: t4ht.c:1589
*job_name strlen((char *) job_name) - 4)
char * file
Definition: t4ht.c:931
return() int(((double) *(font_tbl[cur_fnt].wtbl+(int)(*(font_tbl[cur_fnt].char_wi+(int)(ch - font_tbl[cur_fnt].char_f)% 256)))/(double)(1L<< 20)) *(double) font_tbl[cur_fnt].scale)
FILE * ifp
Definition: t1asm.c:88
#define U(a)
Definition: twiddle.h:1
@ L
Definition: ubidiimp.h:45
#define argv
Definition: xmain.c:270
#define argc
Definition: xmain.c:269
#define argn