|
GRASS 8 Programmer's Manual 8.6.0dev(2026)-f6f2c534ea
|
GIS Library - Print functions for aligning wide characters. More...
#include <stdio.h>#include <stdlib.h>#include <string.h>#include <stdarg.h>#include <grass/gis.h>#include <grass/glocale.h>
Go to the source code of this file.
Macros | |
| #define | CONVS "diouxXeEfFgGaAcsCSpnm%" |
| #define | SPEC_BUF_SIZE 16 |
Functions | |
| int | G_vaprintf (const char *format, va_list ap) |
| vprintf() version of G_aprintf(). See G_aprintf() for more details. | |
| int | G_vfaprintf (FILE *stream, const char *format, va_list ap) |
| vfprintf() version of G_aprintf(). See G_aprintf() for more details. | |
| int | G_vsaprintf (char *str, const char *format, va_list ap) |
| vsprintf() version of G_aprintf(). See G_aprintf() for more details. | |
| int | G_vsnaprintf (char *str, size_t size, const char *format, va_list ap) |
| vsnprintf() version of G_aprintf(). See G_aprintf() for more details. | |
| int | G_aprintf (const char *format,...) |
| Adjust the width of string specifiers to the display space instead of the number of bytes for wide characters and print them formatted using the adjusted display width. | |
| int | G_faprintf (FILE *stream, const char *format,...) |
| fprintf() version of G_aprintf(). See G_aprintf() for more details. | |
| int | G_saprintf (char *str, const char *format,...) |
| sprintf() version of G_aprintf(). See G_aprintf() for more details. | |
| int | G_snaprintf (char *str, size_t size, const char *format,...) |
| snprintf() version of G_aprintf(). See G_aprintf() for more details. | |
GIS Library - Print functions for aligning wide characters.
Extracted from the aligned printf C library (libaprintf under GPL v3+) by Huidae Cho.
(C) 2020 by the GRASS Development Team
This program is free software under the GNU General Public License (>=v2). Read the file COPYING that comes with GRASS for details.
Definition in file aprintf.c.
Adjust the width of string specifiers to the display space instead of the number of bytes for wide characters and print them formatted using the adjusted display width.
compare
ABCD|
and
ABCD|
| [in] | format | string format |
| [in] | ... | arguments for the format string |
Definition at line 465 of file aprintf.c.
References G_vaprintf().
fprintf() version of G_aprintf(). See G_aprintf() for more details.
| [in] | stream | file pointer |
| [in] | format | string format |
| [in] | ... | arguments for the format string |
Definition at line 485 of file aprintf.c.
References G_vfaprintf().
sprintf() version of G_aprintf(). See G_aprintf() for more details.
| [in] | str | string buffer |
| [in] | format | string format |
| [in] | ... | arguments for the format string |
Definition at line 505 of file aprintf.c.
References G_vsaprintf().
snprintf() version of G_aprintf(). See G_aprintf() for more details.
| [in] | str | string buffer |
| [in] | size | string buffer size |
| [in] | format | string format |
| [in] | ... | arguments for the format string |
Definition at line 527 of file aprintf.c.
References G_vsnaprintf().
vprintf() version of G_aprintf(). See G_aprintf() for more details.
| [in] | format | string format |
| [in] | ap | variable argument list for the format string |
Definition at line 379 of file aprintf.c.
References NULL.
Referenced by G_aprintf().
vfprintf() version of G_aprintf(). See G_aprintf() for more details.
| [in] | stream | file pointer |
| [in] | format | string format |
| [in] | ap | variable argument list for the format string |
Definition at line 392 of file aprintf.c.
References NULL.
Referenced by G_faprintf().
vsprintf() version of G_aprintf(). See G_aprintf() for more details.
| [in] | str | string buffer |
| [in] | format | string format |
| [in] | ap | variable argument list for the format string |
Definition at line 411 of file aprintf.c.
References NULL.
Referenced by G_saprintf().
vsnprintf() version of G_aprintf(). See G_aprintf() for more details.
| [in] | str | string buffer |
| [in] | size | string buffer size |
| [in] | format | string format |
| [in] | ap | variable argument list for the format string |
Definition at line 432 of file aprintf.c.
References NULL.
Referenced by G_snaprintf().