Definition in file Misc.cpp.
#include "Misc.h"
#include <stdlib.h>
#include <string.h>
Include dependency graph for Misc.cpp:
Go to the source code of this file.
Functions | |
int | strip (char *dest, char c, int mode) |
Strip leading and/or trailing instances of the specified character from a string. | |
int | crstrip (char *dest) |
Strip possible multiple trailing CR/LF's at EOL. | |
int | allocCpy (char **dest, char *src) |
Allocate and copy in one step. | |
int | getCmdIndex (const char **cmds, const char *myCmd) |
A simple word lookup routine, converts a word to its index index number in the supplied list to make all lookups the same. |
|
Allocate and copy in one step.
Definition at line 54 of file Misc.cpp. Referenced by CfgParse::go(). |
|
Strip possible multiple trailing CR/LF's at EOL.
Definition at line 41 of file Misc.cpp. Referenced by CfgParse::go(). |
|
A simple word lookup routine, converts a word to its index index number in the supplied list to make all lookups the same.
Definition at line 63 of file Misc.cpp. Referenced by ControlMomentGyro::ControlMomentGyro(), Relay::Relay(), Thruster::Thruster(), and TiltSensor::TiltSensor(). |
|
Strip leading and/or trailing instances of the specified character from a string.
Definition at line 14 of file Misc.cpp. Referenced by CfgParse::go(). |