fdupes  2.1.2
About: FDUPES finds duplicate files in a given set of directories.
  Fossies Dox: fdupes-2.1.2.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

Go to the documentation of this file.
1 /* Copyright (c) 2019 Adrian Lopez
3  This software is provided 'as-is', without any express or implied
4  warranty. In no event will the authors be held liable for any damages
5  arising from the use of this software.
7  Permission is granted to anyone to use this software for any purpose,
8  including commercial applications, and to alter it and redistribute it
9  freely, subject to the following restrictions:
11  1. The origin of this software must not be misrepresented; you must not
12  claim that you wrote the original software. If you use this software
13  in a product, an acknowledgment in the product documentation would be
14  appreciated but is not required.
15  2. Altered source versions must be plainly marked as such, and must not be
16  misrepresented as being the original software.
17  3. This notice may not be removed or altered from any source distribution. */
19 #include "config.h"
20 #include "positive_wcwidth.h"
22 int positive_wcwidth(wchar_t ch)
23 {
24  int w;
26  w = wcwidth(ch);
28  if (w >= 0)
29  return w;
30  else
31  return 1;
32 }
int positive_wcwidth(wchar_t ch)
Definition: positive_wcwidth.c:22