~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to strings/llstr.c

MergeĀ fromĀ trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
 
19
19
  llstr(value, buff);
20
20
 
21
 
  This function saves a longlong value in a buffer and returns the pointer to
22
 
  the buffer.  This is useful when trying to portable print longlong
 
21
  This function saves a int64_t value in a buffer and returns the pointer to
 
22
  the buffer.  This is useful when trying to portable print int64_t
23
23
  variables with printf() as there is no usable printf() standard one can use.
24
24
*/
25
25
 
27
27
#include <my_global.h>
28
28
#include "m_string.h"
29
29
 
30
 
char *llstr(longlong value,char *buff)
 
30
char *llstr(int64_t value,char *buff)
31
31
{
32
 
  longlong10_to_str(value,buff,-10);
 
32
  int64_t10_to_str(value,buff,-10);
33
33
  return buff;
34
34
}
35
35
 
36
 
char *ullstr(longlong value,char *buff)
 
36
char *ullstr(int64_t value,char *buff)
37
37
{
38
 
  longlong10_to_str(value,buff,10);
 
38
  int64_t10_to_str(value,buff,10);
39
39
  return buff;
40
40
}