w32tex
About: TeX Live provides a comprehensive TeX system including all the major TeX-related programs, macro packages, and fonts that are free software. Windows sources.
  Fossies Dox: w32tex-src.tar.xz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

fmt_fp.c File Reference
#include <mruby.h>
#include <stdio.h>
Include dependency graph for fmt_fp.c:

Go to the source code of this file.

Functions

mrb_value mrb_float_to_str (mrb_state *mrb, mrb_value flo, const char *fmt)
 
int mrb_float_to_cstr (mrb_state *mrb, char *buf, size_t len, const char *fmt, mrb_float fval)
 

Function Documentation

◆ mrb_float_to_cstr()

int mrb_float_to_cstr ( mrb_state mrb,
char *  buf,
size_t  len,
const char *  fmt,
mrb_float  fval 
)

Definition at line 458 of file fmt_fp.c.

References buf, fmt, len, and snprintf.

Referenced by mrb_str_format().

◆ mrb_float_to_str()

mrb_value mrb_float_to_str ( mrb_state mrb,
mrb_value  flo,
const char *  fmt 
)

Definition at line 449 of file fmt_fp.c.

References buf, fmt, mrb_str_new_cstr(), and snprintf.

Referenced by flo_to_s().