source: rtems/cpukit/libcsupport/src/sup_fs_is_separator.c @ 92119ed

4.115
Last change on this file since 92119ed was 452fdc10, checked in by Jennifer Averett <Jennifer.Averett@…>, on 06/07/10 at 15:07:39

2010-06-07 Bharath Suri <bharath.s.jois@…>

  • libcsupport/include/rtems/libio_.h: Removed macros rtems_filesystem_is_separator rtems_filesystem_get_start_loc rtems_filesystem_get_sym_start_loc and added them as files under libcsupport/src/
  • libcsupport/src/: Added new files libcsupport/src/sup_fs_get_start_loc.c libcsupport/src/sup_fs_get_sym_start_loc.c libcsupport/src/sup_fs_is_separator.c
  • libcsupport/Makefile.am: Changes to accommodate new files under libcsupport/src/
  • Property mode set to 100644
File size: 636 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
18/*
19 *  rtems_filesystem_is_separator
20 *
21 *  Function to determine if a character is a path name separator.
22 *  This was originally a macro in libio_.h
23 *
24 *  NOTE:  This function handles MS-DOS and UNIX style names.
25 */
26
27int rtems_filesystem_is_separator(char ch)
28{
29  return ((ch == '/') || (ch == '\\') || (ch == '\0'));
30}
Note: See TracBrowser for help on using the repository browser.