SYNOPSIS
#include <err.h>
void warn(const char *fmt, ...);
DESCRIPTION
The function
The function
fprintf(stderr, " %s: ", argv[0]); fprintf(stderr, fmt, ...); fprintf(stderr, ": %s\n", strerror(errno));
PARAMETERS
- fmt
-
Is the format string for optional arguments, or the null pointer if no formatted message is to be instated.
- ...
-
Represents optional arguments to formatted message.
RETURN VALUES
The
- EACCES
-
Another process has the file locked.
- EBADF
-
The standard error stream has been closed.
- EINTR
-
A signal interrupted the call.
- EIO
-
An output error occurred.
- ENOMEM
-
Memory could not be allocated for internal buffers.
- ENOSPC
-
An attempt was made to write to a full disk.
- ENXIO
-
A device error occurred.
- EPIPE
-
An attempt was made to write to a closed pipe.
CONFORMANCE
4.4BSD.
MULTITHREAD SAFETY LEVEL
Unsafe.
PORTING ISSUES
None.
AVAILABILITY
PTC MKS Toolkit for Professional Developers
PTC MKS Toolkit for Professional Developers 64-Bit Edition
PTC MKS Toolkit for Enterprise Developers
PTC MKS Toolkit for Enterprise Developers 64-Bit Edition
SEE ALSO
- Functions:
err() ,errx() ,fprintf() ,perror() ,strerror() ,verr() ,verrx() ,vwarn() ,vwarnx() ,warnx()
PTC MKS Toolkit 10.5 Documentation Build 40.