source: rtems/cpukit/libcsupport/src/sup_fs_is_separator.c @ c4e1e32

4.115
Last change on this file since c4e1e32 was c4e1e32, checked in by Ralf Corsepius <ralf.corsepius@…>, on 12/07/11 at 17:21:35

2011-12-07 Ralf Corsépius <ralf.corsepius@…>

  • libcsupport/src/sup_fs_is_separator.c: Include <rtems/libio_.h> (Missing protypes).
  • Property mode set to 100644
File size: 662 bytes
Line 
1/**
2 * @file src/sup_fs_is_separator.c
3 */
4
5/*
6 *
7 *  COPYRIGHT (c) 1989-1999.
8 *  On-Line Applications Research Corporation (OAR).
9 *
10 *  The license and distribution terms for this file may be
11 *  found in the file LICENSE in this distribution or at
12 *  http://www.rtems.com/license/LICENSE.
13 *
14 *  $Id$
15 */
16
17#include <rtems/libio_.h>
18
19/*
20 *  rtems_filesystem_is_separator
21 *
22 *  Function to determine if a character is a path name separator.
23 *  This was originally a macro in libio_.h
24 *
25 *  NOTE:  This function handles MS-DOS and UNIX style names.
26 */
27
28int rtems_filesystem_is_separator(char ch)
29{
30  return ((ch == '/') || (ch == '\\') || (ch == '\0'));
31}
Note: See TracBrowser for help on using the repository browser.