putwchar.c (e74101e4eff767325553039def89de70b70f36d3) | putwchar.c (3619568a645e92383cd7dfb4a6bb334c24803733) |
---|---|
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 --- 21 unchanged lines hidden (view full) --- 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/* | 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 --- 21 unchanged lines hidden (view full) --- 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/* |
38 * Synonym for fputwc(wc, stdout). Function call overhead is not an issue here: 39 * wchar.h #define's putwchar(wc) to fgetwc(wc, stdout). | 38 * Synonym for fputwc(wc, stdout). |
40 */ | 39 */ |
41#undef putwchar | |
42wint_t 43putwchar(wchar_t wc) 44{ 45 46 return (fputwc(wc, stdout)); 47} | 40wint_t 41putwchar(wchar_t wc) 42{ 43 44 return (fputwc(wc, stdout)); 45} |