Gemmi C++ API
Loading...
Searching...
No Matches
Namespaces | Macros | Functions
sprintf.hpp File Reference
#include <string>
#include <algorithm>
#include "fail.hpp"

Go to the source code of this file.

Namespaces

namespace  gemmi
 

Macros

#define GEMMI_ATTRIBUTE_FORMAT(fmt, va)
 

Functions

GEMMI_DLL int gemmi::snprintf_z (char *buf, int count, char const *fmt,...) GEMMI_ATTRIBUTE_FORMAT(3
 stb_snprintf in gemmi namespace - like snprintf, but ignores locale and is always zero-terminated (hence _z).
 
GEMMI_DLL int GEMMI_DLL int gemmi::sprintf_z (char *buf, char const *fmt,...) GEMMI_ATTRIBUTE_FORMAT(2
 stb_sprintf in gemmi namespace
 
GEMMI_DLL int GEMMI_DLL int std::string gemmi::to_str (double d)
 
std::string gemmi::to_str (float d)
 
template<int Prec>
std::string gemmi::to_str_prec (double d)
 
chargemmi::to_chars_z (char *first, char *last, int value)
 zero-terminated to_chars()
 
chargemmi::to_chars_z (char *first, char *last, size_t value)
 

Macro Definition Documentation

◆ GEMMI_ATTRIBUTE_FORMAT

#define GEMMI_ATTRIBUTE_FORMAT (   fmt,
  va 
)

Definition at line 27 of file sprintf.hpp.