Tun wir mal so als ob wir Helper Funktionen benutzen wrden

This commit is contained in:
Valentin Lechner 2019-12-08 11:59:14 +01:00
parent dcd4c6588a
commit bbf48681e0
2 changed files with 33 additions and 0 deletions

20
src/610b415.c Normal file
View 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
View 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_ */