Tun wir mal so als ob wir Helper Funktionen benutzen wrden
This commit is contained in:
parent
dcd4c6588a
commit
bbf48681e0
20
src/610b415.c
Normal file
20
src/610b415.c
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
/*
|
||||||
|
* 610b415.c
|
||||||
|
*
|
||||||
|
* Created on: Dec 6, 2019
|
||||||
|
* Author: vlr
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include "610b415.h"
|
||||||
|
|
||||||
|
char * stringRemoveChars(char *AString, char *ASpanset){
|
||||||
|
char *LPtr = AString;
|
||||||
|
LPtr = strpbrk(LPtr, ASpanset);
|
||||||
|
|
||||||
|
while(LPtr != NULL) {
|
||||||
|
*LPtr = ' ';
|
||||||
|
LPtr = strpbrk(LPtr, AString);
|
||||||
|
}
|
||||||
|
|
||||||
|
return AString;
|
||||||
|
}
|
13
src/headers/610b415.h
Normal file
13
src/headers/610b415.h
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
/*
|
||||||
|
* 610b415.h
|
||||||
|
*
|
||||||
|
* Created on: Dec 6, 2019
|
||||||
|
* Author: vlr
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef SRC_HEADERS_610B415_H_
|
||||||
|
#define SRC_HEADERS_610B415_H_
|
||||||
|
|
||||||
|
extern char * stringRemoveChars(char *AString, char *ASpanset);
|
||||||
|
|
||||||
|
#endif /* SRC_HEADERS_610B415_H_ */
|
Loading…
Reference in New Issue
Block a user