summaryrefslogtreecommitdiffstats
path: root/cpukit/libcsupport/src/sup_fs_is_separator.c
blob: affd606271f49535b2cc97b893f80592350db4d1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/**
 * @file src/sup_fs_is_separator.c
 */

/*
 *
 *  COPYRIGHT (c) 1989-1999.
 *  On-Line Applications Research Corporation (OAR).
 *
 *  The license and distribution terms for this file may be
 *  found in the file LICENSE in this distribution or at
 *  http://www.rtems.com/license/LICENSE.
 *
 *  $Id$
 */


/*
 *  rtems_filesystem_is_separator
 *
 *  Function to determine if a character is a path name separator.
 *  This was originally a macro in libio_.h
 *
 *  NOTE:  This function handles MS-DOS and UNIX style names.
 */

int rtems_filesystem_is_separator(char ch)
{
  return ((ch == '/') || (ch == '\\') || (ch == '\0'));
}