diff options
author | axel <axel@liljencrantz.se> | 2006-02-28 23:17:16 +1000 |
---|---|---|
committer | axel <axel@liljencrantz.se> | 2006-02-28 23:17:16 +1000 |
commit | 2401a163fe418310a1ed015b0d4fc8402740ff79 (patch) | |
tree | b30367f4988f169a3426489d9628e3d6873aa92e /output.c | |
parent | e8d802c5e184e069e783652fb60c9dec524acc93 (diff) |
Move all fallbacks for standard and not-so-standard unix functions to fallback.c, in order to have a one-stop place to look for such functions
darcs-hash:20060228131716-ac50b-0832193dbcaf7191dcb24456dc40f2e861a1382e.gz
Diffstat (limited to 'output.c')
-rw-r--r-- | output.c | 13 |
1 files changed, 4 insertions, 9 deletions
@@ -38,7 +38,10 @@ #include <time.h> #include <wchar.h> + +#include "fallback.h" #include "util.h" + #include "wutil.h" #include "expand.h" #include "common.h" @@ -292,15 +295,7 @@ int writeb( tputs_arg_t b ) int writembs( char *str ) { -#ifdef TPUTS_KLUDGE - while( *str ) - { - out( *str ); - } -#else - tputs(str,1,writeb); -#endif - return 0; + return tputs(str,1,&writeb)==ERR?1:0; } int writech( wint_t ch ) |