/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: 2013-09-04 20:52:28 UTC
  • mto: This revision was merged to the branch mainline in revision 7.
  • Revision ID: gustav.hartvigsson@gmail.com-20130904205228-47tx12lnxqpayfne
Started work on the Map (SMap) data structure.
Still needs a method to determin if an object is a child to
SBaseObjectInstance.

**sigh**

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
  return ret_val;
31
31
}
32
32
 
33
 
char * s_string_new_with_lenghth (const char * s, size_t len) {
34
 
  char * ret_val = malloc (len);
 
33
char * s_string_new_with_len (const char * s, size_t len) {
 
34
  char * ret_val = malloc (len + 1);
35
35
  strncpy (ret_val, s, len);
36
36
  return ret_val;
37
37
}
 
38
 
 
39
void s_print (const char * string) {
 
40
  fprintf (stdout, string);
 
41
}