projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
maint: update copyright
[gnulib.git]
/
lib
/
btowc.c
diff --git
a/lib/btowc.c
b/lib/btowc.c
index
7f3b966
..
b06ca2e
100644
(file)
--- a/
lib/btowc.c
+++ b/
lib/btowc.c
@@
-1,5
+1,5
@@
/* Convert unibyte character to wide character.
/* Convert unibyte character to wide character.
- Copyright (C) 2008 Free Software Foundation, Inc.
+ Copyright (C) 2008
, 2010-2014
Free Software Foundation, Inc.
Written by Bruno Haible <bruno@clisp.org>, 2008.
This program is free software: you can redistribute it and/or modify
Written by Bruno Haible <bruno@clisp.org>, 2008.
This program is free software: you can redistribute it and/or modify
@@
-21,6
+21,7
@@
#include <wchar.h>
#include <stdio.h>
#include <wchar.h>
#include <stdio.h>
+#include <stdlib.h>
wint_t
btowc (int c)
wint_t
btowc (int c)
@@
-32,7
+33,7
@@
btowc (int c)
buf[0] = c;
if (mbtowc (&wc, buf, 1) >= 0)
buf[0] = c;
if (mbtowc (&wc, buf, 1) >= 0)
- return wc;
+
return wc;
}
return WEOF;
}
}
return WEOF;
}