newrpl/firmware/sys/fsystem/fsstripsemi.c
2020-01-21 18:34:44 -05:00

24 lines
474 B
C

/*
* Copyright (c) 2014-2015, Claudio Lapilli and the newRPL Team
* All rights reserved.
* This file is released under the 3-clause BSD license.
* See the file LICENSE.txt that shipped with this distribution.
*/
#include "fsyspriv.h"
#ifndef CONFIG_NO_FSYSTEM
// STRIP TRAILING SEMICOLONS ON NAME
void FSStripSemi(char *name)
{
char *ptr = name;
while(*ptr)
++ptr;
--ptr;
while(*ptr == ';' && ptr >= name)
--ptr;
ptr[1] = 0;
}
#endif