#include "the_syntax-functions_04.h"

int main(int argc,char **argv)
{
   int A,B,C;
   int *D;
   char ALetter;
   char MyFirstName[20];
   char FakeName[20];
   
   B = 3;
   IncromentB(&B);
   
   ALetter = FirstLetter("What is the first letter?");
   ALetter = LetterAt(("What is the first letter?",10);
   
   A = 2;
   C = ATimesB(A,B);
      
   MyNumber(D);
   
   TheFirstName("Roy Souther\0",MyFirstName);
   
   FakeName = MakeUpAName();
}

void IncromentB(int *SomeValue)
{
   (*SomeValue)++;
}

char FirstLetter(char *AStringArray)
{
   return(AStringArray[0]);
}

char LetterAt(char *AStringArray, int IndexFromLeft)
{
   return(AStringArray[IndexFromLeft]);
}

int ATimesB(int A, int B)
{
   return(A*B);
}

void MyNumber(int *IntPointer)
{
   *IntPointer = 4;
}

void TheFirstName(char *TheFullName, char *Destination)
{
   char TestChar;
   int ArrayIndex;
   
   ArrayIndex = 0;
   TestChar = TheFullName[ArrayIndex++];
   while(TestChar != ' ')
   {
      Destination[ArrayIndex] = TestChar;
      TestChar = TheFullName[ArrayIndex++];   
   }
   Destination[ArrayIndex] = '\0';
}

const char *MakeUpAName();
{
   char AName[] = "Tonny";
   
   return(AName);
}
