Add prgma once to Utilities file

This commit is contained in:
Starbeamrainbowlabs 2016-10-21 21:19:09 +01:00
parent 82f0b9620c
commit 6f020a6d3b
2 changed files with 2 additions and 1 deletions

View file

@ -1,7 +1,6 @@
//#include <string.h>
//#include <algorithm>
int findChar(char* str, char targetChar)
{
for(int i = 0; str[i] != '\0'; i++) {

View file

@ -7,6 +7,8 @@
* Thanks to Rob Miles for getting me into this :-)
*/
#pragma once
int findChar(char* str, char targetChar);
int getPosition(const char *array, int size, char c);