MCPcopy Create free account
hub / github.com/ArduPilot/ardupilot / lua_number2strx

Function lua_number2strx

libraries/AP_Scripting/lua/src/lstrlib.c:880–891  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

878
879
880static int lua_number2strx (lua_State *L, char *buff, int sz,
881 const char *fmt, lua_Number x) {
882 int n = num2straux(buff, sz, x);
883 if (fmt[SIZELENMOD] == 'A') {
884 int i;
885 for (i = 0; i < n; i++)
886 buff[i] = toupper(uchar(buff[i]));
887 }
888 else if (fmt[SIZELENMOD] != 'a')
889 return luaL_error(L, "modifiers for format '%%a'/'%%A' not implemented");
890 return n;
891}
892
893#endif /* } */
894

Callers 2

addliteralFunction · 0.85
str_formatFunction · 0.85

Calls 2

num2strauxFunction · 0.85
luaL_errorFunction · 0.85

Tested by

no test coverage detected