123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- #if HAVE_CONFIG_H
- # include <config.h>
- #endif
- #include "print-copyr.h"
- #include <stdio.h>
- #if ENABLE_NLS
- # include "unicodeio.h"
- #else
- # define unicode_to_mb(code, callback, error_callback, callback_arg) \
- error_callback (code, callback_arg)
- #endif
- #define COPYRIGHT_SIGN 0x00A9
- static int
- print_parenthesized_c (unsigned int code, void *callback_arg)
- {
- FILE *stream = callback_arg;
- return fputs ("(C)", stream);
- }
- void
- print_copyright (char const *notice)
- {
- fputs ("Copyright ", stdout);
- unicode_to_mb (COPYRIGHT_SIGN, print_unicode_char, print_parenthesized_c,
- stdout);
- fputc (' ', stdout);
- puts (notice);
- }
|