Changeset ed88c8e in mainline for uspace/lib/c/include/stdio.h


Ignore:
Timestamp:
2018-05-29T13:25:07Z (6 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
fc0b2a8
Parents:
a57fa32
git-author:
Jiri Svoboda <jiri@…> (2018-05-28 17:24:17)
git-committer:
Jiri Svoboda <jiri@…> (2018-05-29 13:25:07)
Message:

fputc, putchar vs. fputwc, putwchar.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/include/stdio.h

    ra57fa32 red88c8e  
    4040#include <_bits/size_t.h>
    4141#include <_bits/wchar_t.h>
     42#include <_bits/wint_t.h>
    4243
    4344#define EOF  (-1)
     
    7374
    7475/* Character and string output functions */
    75 extern int fputc(wchar_t, FILE *);
     76extern int fputc(int, FILE *);
    7677extern int fputs(const char *, FILE *);
    7778
    78 // FIXME: putchar and fputc are byte-oriented.
    79 // They shouldn't accept wide characters.
    80 extern int putchar(wchar_t);
     79extern int putchar(int);
    8180extern int puts(const char *);
    8281
    8382extern int ungetc(int, FILE *);
     83
     84extern wint_t fputwc(wchar_t, FILE *);
     85extern wint_t putwchar(wchar_t);
    8486
    8587/* Formatted string output functions */
Note: See TracChangeset for help on using the changeset viewer.