Ruby 3.5.0dev (2025-02-22 revision 412997300569c1853c09813e4924b6df3d7e8669)
sprintf.h
Go to the documentation of this file.
1#ifndef RBIMPL_INTERN_SPRINTF_H /*-*-C++-*-vi:se ft=cpp:*/
2#define RBIMPL_INTERN_SPRINTF_H
26#include "ruby/internal/value.h"
27
29
30/* sprintf.c */
31
32
43VALUE rb_f_sprintf(int argc, const VALUE *argv);
44
46RBIMPL_ATTR_FORMAT(RBIMPL_PRINTF_FORMAT, 1, 2)
82VALUE rb_sprintf(const char *fmt, ...);
83
85RBIMPL_ATTR_FORMAT(RBIMPL_PRINTF_FORMAT, 1, 0)
93VALUE rb_vsprintf(const char *fmt, va_list ap);
94
96RBIMPL_ATTR_FORMAT(RBIMPL_PRINTF_FORMAT, 2, 3)
108VALUE rb_str_catf(VALUE dst, const char *fmt, ...);
109
111RBIMPL_ATTR_FORMAT(RBIMPL_PRINTF_FORMAT, 2, 0)
124VALUE rb_str_vcatf(VALUE dst, const char *fmt, va_list ap);
125
155VALUE rb_str_format(int argc, const VALUE *argv, VALUE fmt);
156
158
159#endif /* RBIMPL_INTERN_SPRINTF_H */
Tweaking visibility of C variables/functions.
#define RBIMPL_SYMBOL_EXPORT_END()
Counterpart of RBIMPL_SYMBOL_EXPORT_BEGIN.
Definition dllexport.h:74
#define RBIMPL_SYMBOL_EXPORT_BEGIN()
Shortcut macro equivalent to RUBY_SYMBOL_EXPORT_BEGIN extern "C" {.
Definition dllexport.h:65
Defines RBIMPL_ATTR_FORMAT.
#define RBIMPL_ATTR_FORMAT(x, y, z)
Wraps (or simulates) __attribute__((format))
Definition format.h:29
VALUE rb_str_format(int argc, const VALUE *argv, VALUE fmt)
Formats a string.
Definition sprintf.c:215
VALUE rb_f_sprintf(int argc, const VALUE *argv)
Identical to rb_str_format(), except how the arguments are arranged.
Definition sprintf.c:209
VALUE rb_vsprintf(const char *fmt, va_list ap)
Identical to rb_sprintf(), except it takes a va_list.
Definition sprintf.c:1211
Defines RBIMPL_ATTR_NONNULL.
#define RBIMPL_ATTR_NONNULL(list)
Wraps (or simulates) __attribute__((nonnull))
Definition nonnull.h:30
Defines VALUE and ID.
uintptr_t VALUE
Type that represents a Ruby object.
Definition value.h:40