glibc/manual/examples
Girish Joshi 5d5b3bd94c manual: Fix backtraces code example [BZ #10441]
Validation for pointer returned by backtrace_symbols () added.
Type of variables size and i is changed from size_t to int.

Variable size is used to collect the result from backtrace ()
that is an int. i is the loop counter variable so it can be an int.

Since, size_t size is changed to int size, in printf %zd is changed to %d.

Reviewed-by: DJ Delorie <dj@redhat.com>
2020-05-29 10:08:08 -03:00
..
add.c
argp-ex1.c
argp-ex2.c
argp-ex3.c
argp-ex4.c
atexit.c
db.c
dir2.c
dir.c
execinfo.c
filecli.c
filesrv.c
fmtmsgexpl.c
genpass.c
inetcli.c
inetsrv.c
isockad.c
longopt.c
mbstouwcs.c
memopen.c
memstrm.c
mkdirent.c
mkfsock.c
mkisock.c
mygetpass.c
ofdlocks.c
pipe.c
popen.c
README
rprintf.c
search.c
select.c
setjmp.c
sigh1.c
sigusr.c
stpcpy.c
strdupa.c
strftim.c
subopt.c
swapcontext.c
termios.c
testopt.c
testpass.c
timeval_subtract.c
twalk.c

These are source files for example code that appears in The GNU C
Library Reference Manual.

While the manual itself is licensed under the terms of the GNU Free
Documentation License, you can use these source files on their own
under the terms of the GNU General Public License as published by
the Free Software Foundation; version 2 of the License, or (at your
option) any later version.