.th PRINTF III 9/17/73
.sh NAME
printf \*- formatted print
.sh SYNOPSIS
.ft B
printf(format, arg\s6\d1\u\s10, ...);
.br
char *format;
.ft R
.sh DESCRIPTION
.it Printf
converts, formats, and prints its
-- an implementation of printf
function printf(...)
io.write(string.format(unpack(arg)))
end
printf("Hello %s from %s on %s\n",os.getenv"USER" or "there",_VERSION,os.date())
-- an implementation of printf
function printf(...)
io.write(string.format(unpack(arg)))
end
printf("Hello %s from %s on %s\n",os.getenv"USER" or "there",_VERSION,os.date())
/* Test for printf formats. Formats using C99 features should be rejected
outside of C99 mode.
*/
/* Origin: Joseph Myers */
/* { dg-do compile } */
/* { dg-options "-std=iso9899