~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to strings/llstr.c

  • Committer: brian
  • Date: 2008-06-25 05:29:13 UTC
  • Revision ID: brian@localhost.localdomain-20080625052913-6upwo0jsrl4lnapl
clean slate

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