SStrLen
function · storm · boundary
- Address
0x64a6f0· 46 bytes, up to0x64a71d- Signature
uint32_t __stdcall (const char *text)- Meaning
- Returns the length of a C string; null sets error 0x57 and gives 0
- Confidence
- verified, proof two
- Name from
- the community database (idb)
- Finding
- storm/strings#string-length-and-append
- Test
storm::sstrlen_whole
Finding: String length and append in storm: string conversions
SStrLen(s) (0x64a6f0) returns the count of bytes before the first NUL. SStrPack(dest, src, size) (0x64a760)
appends src to the string in dest and returns the new length of dest. A size of 0 returns 0 and writes
nothing. Otherwise bytes of src are copied to the end of dest while the write address is below
dest + size - 1 (unsigned 32-bit address arithmetic), and a NUL follows the last byte copied; a dest already at the
limit gets no byte and its NUL is rewritten at its old end. size 0x7fffffff has no limit. A null s, dest or
src sets error 0x57 and gives 0, SStrPack writing nothing even for a size of 0.
The derivation is in the doc.
Callers 153
- EnumerateArchiveFiles client
- BeginLoadingScreen loadingscreen
- CDataStore::PutCString base
- CStatus::GetErrorStr client
- CStatus::GetErrorStrLen client
- AssignSharedString base
- 0x41e610 base
- OpenUrlInBrowser os
- 0x42aec0 os
- 0x42b000 os
- OsPathGetRootChars unassigned
- 0x42b400 unassigned
- 0x430e30 unassigned
- 0x434090 unassigned
- StartHostResolve os
- 0x444070 unassigned
- ProfileReadFile unassigned
- TextureDiscoverFileType gx
- 0x44db50 unassigned
- HashString random
- RandomShuffleString random
- SetSoundDefFiles sound
- ReceiveServerAlertData glue
- CGlueMgr::Idle glue
- Script::GetRandomName glue
- RunPrepatchList glue
- GenerateRandomName glue
- BuildNameStatistics glue
- Script::SetConsoleKey ui
- LayoutCacheRead ui
- LayoutCacheSaveFrame ui
- CGChat::InitializeGame ui
- LoadChatSettings ui
- SaveChatSettings ui
- PrintChannelMemberList ui
- ChatNameArrivedCallback ui
- ShowPendingChatLines ui
- ClientChatHandler ui
- Script::ListChannels ui
- OnBattlefieldNameJoined ui
- ParseSpellRank ui
- WriteBindingSetLines ui
- AppendModifierPrefixes ui
- BuildKeyChord ui
- MACRONODE::DeriveBoundSpell ui
- AddMacroIconFromListfile ui
- AddMacroIconFromBasePath ui
- LoadMacroFiles ui
- SaveMacroFiles ui
- ExpandServerText ui
- ExpandServerToken ui
- ExpandSpellText ui
- ExpandGenderToken ui
- ExpandPluralToken ui
- ExpandTargetTokens ui
- ExpandWorldStateText ui
- CCamera::SaveSettings uicamera
- RegisterArchiveAddOn ui
- RegisterAddOn ui
- ReadAddOnURLText ui
- ReadStockInterfaceNumber ui
- WriteAddonInfo ui
- WriteAddOnKey ui
- WriteInternetShortcut ui
- SaveAddOnEnableState ui
- CGTooltip::AddStudiedCreatureLines ui
- GameTooltipSize ui
- IsAllowedLaunchUrl net
- SendBugReport net
- FriendList::SendWhoQuery net
- SendLogonChallenge net
- SetAccountAndPassword net
- DestroyLogon net
- RealmConnection::HandleAuthChallenge net
- ServerLink::CmdGruntHello net
- ServerLink::CmdGruntAuthChallenge net
- ServerLink::ProveSession net
- ClientLink::PutChallengeBody net
- ClientLink::SendLogonChallenge net
- ClientLink::SendProof net
- CGxString::Initialize font
- CGxString::DumpText font
- MakeCommandCurrent console
- ConsoleCommandRepeat console
- GxResolutionCallback console
- GetInputLine console
- PasteInInputLine console
- UpdateHighlight console
- ConsoleWrite console
- SaveConfig cvar
- CVarDumpToFile cvar
- ConsoleCommandRegister console
- ConsoleCommandComplete console
- AddLineToExecFile unassigned
- IndexLooseFolder storm
- SFileSetBasePath storm
- SFileSetDataPath storm
- SFileSetExtraIndexPath storm
- SStrDupA storm
- SStrStr2 storm
- SStrStr storm
- SStrStrI storm
- 0x64b590 storm
- 0x64b750 storm
- 0x64b8f0 storm
- 0x64b970 storm
- SRegSaveString storm
- 0x64d100 storm
- 0x64d870 storm
- 0x64d960 storm
- 0x64f740 storm
- ParseSwitchNumber storm
- 0x64f9d0 storm
- FindSwitchByPrefix storm
- 0x64fc10 storm
- 0x64fe20 storm
- 0x6571d0 storm
- 0x65a300 storm
- 0x65a560 storm
- OutputTime storm
- 0x65aa70 storm
- SLogVWrite storm
- 0x662e60 storm
- WORLDTEXTSTRING::Rebuild playername
- LoadWardenModule warden
- LoadMd5Catalog minimap
- BuildInteriorName minimap
- LoadTocFile ui
- 0x6f1270 unassigned
- 0x6f16f0 unassigned
- XMLCharacterData ui
- InitXMLNode ui
- FrameScriptSaveVariable ui
- FrameScriptSerializeValue ui
- FrameScriptCompileFunction ui
- FrameScriptExecuteString ui
- FrameScriptRunHandler ui
- FrameScriptRunHandlerV ui
- 0x7290e0 ui
- 0x72f820 ui
- CScriptRegion::ExpandName ui
- CSimpleFontString::SetText ui
- CSimpleFontString::FitText ui
- CSimpleFontString::GetCachedWidth ui
- MeasureRunWidth ui
- CSimpleFontString::MeasureText ui
- CountGlyphsFromRight ui
- CSimpleEditBox::Insert ui
- CSimpleEditBox::AddHistoryLine ui
- CSimpleEditBox::RebuildLabel ui
- CSimpleHTML::SetText ui
- CSimpleHTML::BuildTextBlock ui
- OsClipboardPutString unassigned
Callees 1
- SErrSetLastError storm
Calls and jumps by a bare address, from tables/calls.tsv.