/simpletypesystem/trunk

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/simpletypesystem/trunk

« back to all changes in this revision

Viewing changes to src/SimpleTypeSystem.c

  • Committer: Gustav Hartvigsson
  • Date: 2015-07-12 19:04:18 UTC
  • Revision ID: gustav.hartvigsson@gmail.com-20150712190418-yi9rfito5ovnf6dy
* Made the code more easy to read.

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
#include <stdlib.h>
29
29
#include <string.h>
30
30
 
31
 
char * s_get_version_string () {
 
31
char *
 
32
s_get_version_string () {
32
33
  char * ret_val = malloc ( sizeof(char) * 32);
33
34
  sprintf (ret_val, "Version: %d.%d.%d ", s_get_version_major (),
34
35
                                           s_get_version_minor (),
36
37
  return ret_val;
37
38
}
38
39
 
39
 
int s_get_version_major () {
 
40
int
 
41
s_get_version_major () {
40
42
  return SIMPLE_TYPE_SYSTEM_VERSION_MAJOR;
41
43
}
42
44
 
43
 
int s_get_version_minor () {
 
45
int
 
46
s_get_version_minor () {
44
47
  return SIMPLE_TYPE_SYSTEM_VERSION_MINOR;
45
48
}
46
49
 
47
 
int s_get_version_patch () {
 
50
int
 
51
s_get_version_patch () {
48
52
  return SIMPLE_TYPE_SYSTEM_VERSION_PATCH;
49
53
}
50
54