putwc.c (e7e4715db22de68a703922a64c1a91d0f5e6c523) | putwc.c (e74101e4eff767325553039def89de70b70f36d3) |
---|---|
1/*- 2 * Copyright (c) 2002 Tim J. Robbins. 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 20 unchanged lines hidden (view full) --- 29 30#include "namespace.h" 31#include <stdio.h> 32#include <wchar.h> 33#include "un-namespace.h" 34#include "libc_private.h" 35#include "local.h" 36 | 1/*- 2 * Copyright (c) 2002 Tim J. Robbins. 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 20 unchanged lines hidden (view full) --- 29 30#include "namespace.h" 31#include <stdio.h> 32#include <wchar.h> 33#include "un-namespace.h" 34#include "libc_private.h" 35#include "local.h" 36 |
37#undef putwc 38 | |
39/* 40 * Synonym for fputwc(). The only difference is that putwc(), if it is a | 37/* 38 * Synonym for fputwc(). The only difference is that putwc(), if it is a |
41 * macro, may evaluate `fp' more than once. | 39 * macro, may evaluate `fp' more than once. Function call overhead is not 40 * an issue here: wchar.h #define's putwc to fputwc. |
42 */ | 41 */ |
42#undef putwc |
|
43wint_t 44putwc(wchar_t wc, FILE *fp) 45{ 46 47 return (fputwc(wc, fp)); 48} | 43wint_t 44putwc(wchar_t wc, FILE *fp) 45{ 46 47 return (fputwc(wc, fp)); 48} |