/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 libssts/utils.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:
27
27
#include <stdio.h>
28
28
#include <stdarg.h>
29
29
#include <time.h>
 
30
#include <sys/time.h>
30
31
#include <wchar.h>
31
32
#include <locale.h>
32
33
 
117
118
s_ustring_to_string (const suchar * us) {
118
119
  schar * buffer;
119
120
  schar * resized;
120
 
  size_t bufpos;
 
121
  size_t bufpos = 0;
121
122
  mbstate_t mbstate;
122
123
  memset (&mbstate, 0, sizeof (mbstate));
123
124
  
177
178
s_string_to_ustring (const schar * str) {
178
179
  suchar * buffer;
179
180
  suchar * resized;
180
 
  size_t bufpos;
 
181
  size_t bufpos = 0;
181
182
  mbstate_t mbstate;
182
183
  memset (&mbstate, 0, sizeof (mbstate));
183
184