~ubuntu-branches/debian/experimental/lftp/experimental

« back to all changes in this revision

Viewing changes to lib/btowc.c

  • Committer: Package Import Robot
  • Author(s): Noël Köthe
  • Date: 2015-08-21 16:06:22 UTC
  • mfrom: (1.1.20) (24.1.38 sid)
  • Revision ID: package-import@ubuntu.com-20150821160622-lckdmbiqx16wefgy
Tags: 4.6.4-1
new upstream release 2015-08-21

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* Convert unibyte character to wide character.
2
 
   Copyright (C) 2008 Free Software Foundation, Inc.
 
2
   Copyright (C) 2008, 2010-2015 Free Software Foundation, Inc.
3
3
   Written by Bruno Haible <bruno@clisp.org>, 2008.
4
4
 
5
5
   This program is free software: you can redistribute it and/or modify
21
21
#include <wchar.h>
22
22
 
23
23
#include <stdio.h>
 
24
#include <stdlib.h>
24
25
 
25
26
wint_t
26
27
btowc (int c)
32
33
 
33
34
      buf[0] = c;
34
35
      if (mbtowc (&wc, buf, 1) >= 0)
35
 
        return wc;
 
36
        return wc;
36
37
    }
37
38
  return WEOF;
38
39
}