Select Git revision
dbp-qr-code-scanner-demo-activity.js
-
Reiter, Christoph authoredReiter, Christoph authored
a2.c 1.37 KiB
#include "framework.h"
//-----------------------------------------------------------------------------
// Computes and returns the length of a string
//
// @param text string to check
//
// @return length of the string
//
int stringLength(char *text);
//-----------------------------------------------------------------------------
// Changes a string to upper case
//
// @param text string to modify
//
void toUpper(char *text);
//-----------------------------------------------------------------------------
// Replace all the occurences of a letter in a string with another letter
//
// @param text string to modify
// @param original letter to replace
// @param new_char letter used for the substitution
//
void replaceLetters(char *text, char original, char new_char);
//-----------------------------------------------------------------------------
int stringLength(char *text)
{
// TODO: Implement
// WARNING: Do not change the signature of the function
return 0;
}
//-----------------------------------------------------------------------------
void toUpper(char *text)
{
// TODO: Implement
// WARNING: Do not change the signature of the function
}
//-----------------------------------------------------------------------------
void replaceLetters(char *text, char original, char new_char)
{
// TODO: Implement
// WARNING: Do not change the signature of the function
}