aboutsummaryrefslogtreecommitdiffhomepage
path: root/output.c
diff options
context:
space:
mode:
authorGravatar axel <axel@liljencrantz.se>2006-02-28 23:17:16 +1000
committerGravatar axel <axel@liljencrantz.se>2006-02-28 23:17:16 +1000
commit2401a163fe418310a1ed015b0d4fc8402740ff79 (patch)
treeb30367f4988f169a3426489d9628e3d6873aa92e /output.c
parente8d802c5e184e069e783652fb60c9dec524acc93 (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.c13
1 files changed, 4 insertions, 9 deletions
diff --git a/output.c b/output.c
index 9c9c8713..dda4aa2e 100644
--- a/output.c
+++ b/output.c
@@ -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 )