/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 tests/base_n.c

  • Committer: Gustav Hartvigsson
  • Date: 2017-01-25 12:56:36 UTC
  • Revision ID: gustav.hartvigsson@gmail.com-20170125125636-t92fdnwtns3e73y3
* Fixed all warnings (exept the depricated warning...)

Show diffs side-by-side

added added

removed removed

Lines of Context:
12
12
  size_t testdata_size = strlen (testdata),
13
13
         out_size = 0,
14
14
         hex_size = 0,
15
 
         out2_size = 0,
16
 
         ret_size = 0;
 
15
         out2_size = 0;
17
16
  
18
17
  schar * hex = s_base_16_enc ((sbyte *) testdata, testdata_size, &out_size);
19
18
  
23
22
  
24
23
  hex_size = strlen (hex);
25
24
  
26
 
  schar * ret = s_base_16_dec (hex, hex_size, &out2_size);
 
25
  schar * ret = (schar *) s_base_16_dec (hex, hex_size, &out2_size);
27
26
  
28
27
  s_print ("Test data: %s, The output from the decoding: %s\n", testdata, ret);
29
28