Back to index

nagios-plugins  1.4.16
Functions
btowc.c File Reference
#include <config.h>
#include <wchar.h>
#include <stdio.h>
#include <stdlib.h>

Go to the source code of this file.

Functions

wint_t btowc (int c)

Function Documentation

wint_t btowc ( int  c)

Definition at line 27 of file btowc.c.

{
  if (c != EOF)
    {
      char buf[1];
      wchar_t wc;

      buf[0] = c;
      if (mbtowc (&wc, buf, 1) >= 0)
        return wc;
    }
  return WEOF;
}