Teilprog.c


1
#include <stdio.h>
2
#include <string.h>
3
#include <stdlib.h>
4
5
char *Testfkt(const char *sValue)
6
{
7
  char *zeichen = malloc(sizeof(char) * (strlen(sValue) + 1));
8
  int i, j=sizeof(sValue);
9
  strcpy(zeichen, sValue);
10
  return(zeichen);
11
}
12
13
int main()
14
{
15
  char *text = Testfkt("H");
16
  printf("\nMoin : %s == %d\n", text, (unsigned short)text);
17
  free(text);
18
//}
19
/*
20
int main(void)
21
{*/
22
char Zeichen = 'H';
23
printf("%d\n", (int) Zeichen);
24
}
25
26
// Programming/viaC/Test2/Laufende-Programme/Test1