1
0
Fork 0
mirror of https://gitlab.com/sortix/sortix.git synced 2023-02-13 20:55:38 -05:00

Convert libc to C.

This commit is contained in:
Jonas 'Sortie' Termansen 2016-02-28 12:11:02 +01:00
parent f633942124
commit 01b59c1947
668 changed files with 1895 additions and 1851 deletions

View file

@ -17,13 +17,14 @@
You should have received a copy of the GNU Lesser General Public License
along with the Sortix C Library. If not, see <http://www.gnu.org/licenses/>.
fnmatch/fnmatch.cpp
fnmatch/fnmatch.c
Filename matching.
*******************************************************************************/
#include <errno.h>
#include <fnmatch.h>
#include <stdbool.h>
#include <stddef.h>
#define __FNM_NOT_LEADING (1 << 31)
@ -91,7 +92,7 @@ static bool matches_bracket_pattern(char c, const char* pattern, int flags)
return negated || matched_any;
}
extern "C" int fnmatch(const char* pattern, const char* string, int flags)
int fnmatch(const char* pattern, const char* string, int flags)
{
int next_flags = flags | __FNM_NOT_LEADING;
const char* pattern_end;