#ifndef __Utils__H
#define __Utils__H

#include <stdarg.h>
#include "WimpLib:Coords.h"
#include "kernel.h"

#ifdef __cplusplus
extern "C" {
#endif

#ifdef __CC_NORCROFT
#pragma -v1 // hint to the compiler to check f/s/printf format
#endif
char* SPrintf(const char* pformat, ...);
#ifdef __CC_NORCROFT
#pragma -v0 // return to default
#endif
char* VSPrintf(const char* pformat, va_list arg);
void String_StripBlanks(char* string);
void String_ToLower(char* string, int count);
void String_Translate(char* string, const char* from, const char* to);
// bit 0, ignore case
// bit 1, ignore accents
// len =-1, full len
int String_Collate(int flags, const char*, const char*, int len);
int FitInRange(int value, int min, int max);
const _kernel_oserror* RMEnsure(const char* module, int vers, const char* filename);
const _kernel_oserror* RMKill(const char* module);
const _kernel_oserror* StartTask(HTask* ptask, const char* command);

#ifdef __cplusplus
}
#endif

#endif
