Add prgma once to Utilities file
This commit is contained in:
parent
82f0b9620c
commit
6f020a6d3b
2 changed files with 2 additions and 1 deletions
|
@ -1,7 +1,6 @@
|
||||||
//#include <string.h>
|
//#include <string.h>
|
||||||
//#include <algorithm>
|
//#include <algorithm>
|
||||||
|
|
||||||
|
|
||||||
int findChar(char* str, char targetChar)
|
int findChar(char* str, char targetChar)
|
||||||
{
|
{
|
||||||
for(int i = 0; str[i] != '\0'; i++) {
|
for(int i = 0; str[i] != '\0'; i++) {
|
||||||
|
|
|
@ -7,6 +7,8 @@
|
||||||
* Thanks to Rob Miles for getting me into this :-)
|
* Thanks to Rob Miles for getting me into this :-)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
int findChar(char* str, char targetChar);
|
int findChar(char* str, char targetChar);
|
||||||
|
|
||||||
int getPosition(const char *array, int size, char c);
|
int getPosition(const char *array, int size, char c);
|
||||||
|
|
Reference in a new issue