ReactOS 0.4.16-dev-527-gdad3a09
utclib.c File Reference
#include "acpi.h"
#include "accommon.h"
Include dependency graph for utclib.c:

Go to the source code of this file.

Macros

#define ACPI_CLIBRARY
 
#define _COMPONENT   ACPI_UTILITIES
 

Functions

int memcmp (void *VBuffer1, void *VBuffer2, ACPI_SIZE Count)
 
voidmemmove (void *Dest, const void *Src, ACPI_SIZE Count)
 
voidmemcpy (void *Dest, const void *Src, ACPI_SIZE Count)
 
voidmemset (void *Dest, int Value, ACPI_SIZE Count)
 
ACPI_SIZE strlen (const char *String)
 
charstrpbrk (const char *String, const char *Delimiters)
 
charstrtok (char *String, const char *Delimiters)
 
charstrcpy (char *DstString, const char *SrcString)
 
charstrncpy (char *DstString, const char *SrcString, ACPI_SIZE Count)
 
int strcmp (const char *String1, const char *String2)
 
charstrchr (const char *String, int ch)
 
int strncmp (const char *String1, const char *String2, ACPI_SIZE Count)
 
charstrcat (char *DstString, const char *SrcString)
 
charstrncat (char *DstString, const char *SrcString, ACPI_SIZE Count)
 
charstrstr (char *String1, char *String2)
 
UINT32 strtoul (const char *String, char **Terminator, UINT32 Base)
 
int toupper (int c)
 
int tolower (int c)
 

Variables

const UINT8 AcpiGbl_Ctypes [257]
 

Macro Definition Documentation

◆ _COMPONENT

#define _COMPONENT   ACPI_UTILITIES

Definition at line 90 of file utclib.c.

◆ ACPI_CLIBRARY

#define ACPI_CLIBRARY

Definition at line 44 of file utclib.c.

Function Documentation

◆ memcmp()

int memcmp ( void VBuffer1,
void VBuffer2,
ACPI_SIZE  Count 
)

Definition at line 112 of file utclib.c.

116{
117 char *Buffer1 = (char *) VBuffer1;
118 char *Buffer2 = (char *) VBuffer2;
119
120
121 for ( ; Count-- && (*Buffer1 == *Buffer2); Buffer1++, Buffer2++)
122 {
123 }
124
125 return ((Count == ACPI_SIZE_MAX) ? 0 : ((unsigned char) *Buffer1 -
126 (unsigned char) *Buffer2));
127}
unsigned char
Definition: typeof.h:29
int Count
Definition: noreturn.cpp:7

Referenced by __lexicographical_compare_3way(), _ILHACKCompareSimpleIds(), CMruBase::_IsEqual(), _read_expect_sync_data_len(), _read_request_data(), CRegPropertyBag::_ReadBinary(), _readex_expect_async(), _readex_expect_sync_data_len(), _send_response_and_wait(), _test_file_name(), _test_hkey_main_Value_A(), _test_hkey_main_Value_W(), _test_stream_read(), _TIFFmemcmp(), _unmarshal_itsf_header(), _unmarshal_itsp_header(), _unmarshal_lzxc_control_data(), _unmarshal_pmgi_header(), _unmarshal_pmgl_header(), _wsetlocale_set_cat(), AboutProtocol_Start(), AcceptDataConnection(), ACMStream_fnRead(), ACMStream_fnSetFormat(), ACMWrapper_SetMediaType(), AcpiEvaluateObject(), AcpiExDoLogicalOp(), AcpiRsMatchVendorResource(), AcpiTbCompareTables(), AcpiTbFindTable(), AdapterFindByHardwareAddress(), add_id3_text(), addr_eq(), adns__procdgram(), alloc_importfile(), alloc_msft_importinfo(), append_file_test(), arbfp_blit_type_compare(), ata_check_unit(), AVIDec_SetMediaType(), AVIFILE_FormatsEqual(), BLOBComp(), bridgeif_fdb_get_dst_ports(), bridgeif_fdb_update_src(), BtrFsMatchDirItemName(), cache_container_is_valid(), cache_get(), Pane::calc_widths(), ccf_options(), CDecodeHashMsg_VerifyHash(), CDecodeMsg_SaveAlgorithmID(), CertCompareCertificateName(), CertCompareIntegerBlob(), CertComparePublicKeyInfo(), check_backup_boot(), check_banner(), check_binary_file_data(), check_bits(), check_blob(), check_bom(), check_bstr(), check_dir(), check_exe(), check_file_matches(), check_font(), check_gif_format(), check_output_raw(), check_param(), check_pkt(), check_pkt_fuzzy(), check_png_format(), check_prev_session(), check_reg_multi(), check_rr_dates(), check_safearray(), check_storage_contents(), check_StretchBlt_stretch(), check_StretchDIBits_stretch(), check_superblock_checksum(), check_updates(), check_vertex_components(), checkCRLHash(), checkHash(), CheckROSAgainstWinAndPrintResult(), chm_resolve_object(), BtrfsRecv::cmd_clone(), cmp_iid(), CmpGetBiosDate(), cmpStrAW(), char_traits< char >::compare(), compare_addrinfo(), compare_addrinfow(), compare_bits(), compare_cache(), compare_cert_by_cert_id(), compare_cert_by_md5_hash(), compare_cert_by_sha1_hash(), compare_cert_by_signature_hash(), compare_cms_signer_info(), compare_crl_issued_by(), compare_ctl_by_md5_hash(), compare_ctl_by_sha1_hash(), compare_ctl_existing(), compare_dist_point_name(), compare_elements(), compare_file2(), compare_file_(), compare_file_data(), compare_files(), compare_font(), compare_line(), compare_metadata(), compare_pf_data(), compare_RtlIpv6StringToAddressExW(), compare_RtlIpv6StringToAddressW(), compare_signer_info(), compareAltNameEntry(), compareCTLInfo(), compareFiles(), CompareFunc(), CNtObjectFolder::CompareIDs(), CRegistryFolder::CompareIDs(), CNetworkConnections::CompareIDs(), CRegFolder::CompareIDs(), CCommonFolder< TSelf, TItemId, TExtractIcon >::CompareName(), compareNameValues(), comparePublicKeyInfo(), comparer(), compareSMimeCapabilities(), CompareStorageDuids(), compareStore(), ComponentInfo_Compare(), compound_encode_send_decode(), context_find_fbo_entry(), convert_input_data(), create_body_offset_list(), CreateIconFromResourceEx(), CRYPT_IsCertificateSelfSigned(), CRYPT_ReadSerializedStore(), CryptCATAdminEnumCatalogFromHash(), CryptSIPGetSignedDataMsg(), CryptSIPPutSignedDataMsg(), CryptSIPRetrieveSubjectGuid(), ctl2_alloc_string(), ctl2_find_guid(), CURSORICON_LoadFromFileW(), ddraw_match_surface_desc(), declaration_equals(), decodeAndCompareBase64_A(), decodeBase64WithLenFmtW(), deleg_fh_cmp(), deleg_stateid_cmp(), delete_cache(), delete_hash_entry(), deref_cmp(), detect_compression_type(), device_assign(), deviceid_compare(), DGifOpen(), dhcpack(), dhcpnak(), dhcpoffer(), DIB_GetBitmapInfo(), disk_check_notify(), DnsRecordCompare(), BtrfsRecv::do_recv(), do_test_about_protocol(), DocObjectService_FireBeforeNavigate2(), DoImport(), DoOpenFile(), DoParseFile(), DrawDibDraw(), DSPROPERTY_DescriptionW(), dwarf2_init_zsection(), elf_load_cb(), elf_map_file(), encode_compare_base64_W(), enum_devices_callback(), enum_emf_proc(), enum_metafile_proc(), enum_stream_names(), ept_map(), eto_emf_enum_proc(), exercizeServer(), expect_layeronly_imp(), Ext2VerifyVolume(), ext4_extract_xattr_name(), ext4_xattr_item_alloc(), ext4_xattr_item_cmp(), ext4_xattr_lookup_item(), fdi_mem_write(), file_hash_matches(), file_matches_data(), find_arb_pshader(), find_cc_var(), find_data(), ShellDirectory::find_entry(), find_ept_entry(), find_glsl_domain_shader(), find_glsl_geometry_shader(), find_glsl_pshader(), find_guid_index(), find_product(), find_prop_in_property(), find_subtable_with_diffs(), find_subtable_with_offsets(), FindAcpiBios(), FindFilterItem(), FindGUID(), FindNextVolumeW(), FindPxeStructure(), FixupDll(), FPropContainsProp(), ftGdiGetGlyphOutline(), FTP_ReceiveResponse(), GdipIsMatrixEqual(), generate_xa_rr_attributes(), get_cache_glyph_widths(), get_compsysproduct_uuid(), get_cookie_domain(), get_emfplus_header_proc(), get_file_data(), get_gif_loopcount(), get_resource_section(), get_tz_bias(), getDataType(), GetShellSecurityDescriptor(), getwinmetafilebits(), gl_extension_supported(), Global_InStrRev(), handle_cb_sequence(), handle_insert_comment(), has_png_transparency_chunk(), hash_lookup(), hash_matches_blob(), HTMLEvents_Invoke(), HtmlHelpW(), HttpHeaders_test(), IAssemblyNameImpl_IsEqual(), IAVIStream_fnSetFormat(), icb_ptr(), ICMStream_fnSetFormat(), ICO_ExtractIconExW(), IEILIsEqual(), ILGetConnection(), image_locate_build_id_target(), image_tiff_filter(), image_xpng_filter(), IMAGEHLP_GetSectionOffset(), init_script_cache(), InternalGetBinaryType(), InternetTimeFromSystemTimeA_test(), InternetTimeFromSystemTimeW_test(), InternetTimeToSystemTimeA_test(), InternetTimeToSystemTimeW_test(), IntFindGlyphCache(), IrotGetObject(), IrotGetTimeOfLastChange(), IrotIsRunning(), IrotRegister(), is_expected_variant(), is_identity_fixup(), IsEmptyGuid(), IsEqualGUID(), ITERATE_RemoveEnvironmentString(), ITERATE_WriteEnvironmentString(), ITypeLib2_Constructor_SLTG(), jsstr_cmp_str(), key_prov_info_matches_cert(), layout_entry_compare(), layout_filehandles_cmp(), layout_merge_segments(), layout_update_stateid(), lcid_from_rfc1766(), lexicographical_compare(), link_notify_test(), load_ttf_name_id(), LPropCompareProp(), macho_load_cb(), main(), marshal_STGMEDIUM(), marshal_WdtpInterfacePointer(), match_emf_record(), mdi_child_wnd_proc_2(), mdi_main_wnd_procA(), mds_commit(), ME_ApplyStyle(), ME_GetSelectionParaFormat(), ME_IsCandidateAnURL(), ME_IsFontEqual(), ME_MouseMove(), ME_SetParaFormat(), ME_StreamInText(), ME_StreamOutRTFParaProps(), MediaSeeking_IsUsingTimeFormat(), mes_proc_header_unmarshal(), module_is_container_loaded(), MPEGSplitter_pre_connect(), mpg123_same_string(), MRUList_Check(), MSACM_FillFormatTagsCB(), MSI_RecordsAreFieldsEqual(), MSVCRT__create_locale(), mxstream_Write(), names_add(), NBNameCacheWalk(), nbSStat(), NetBIOSEnumAdapters(), nsPromptService_ConfirmEx(), ntlm_VerifySignature(), NtlmFree(), ObjectFromLresult(), oc_short(), OleConvertOLESTREAMToIStorage(), OleDocumentView_SetRect(), OleObject_DoVerb(), OLEPictureImpl_Load(), one_i64toa_test(), one_i64tow_test(), one_itoa_test(), one_itow_test(), one_ltoa_test(), one_ltow_test(), one_RtlInt64ToUnicodeString_test(), one_RtlIntegerToChar_test(), one_RtlIntegerToUnicodeString_test(), one_RtlLargeIntegerToChar_test(), one_ui64toa_test(), one_ui64tow_test(), one_ultoa_test(), one_ultow_test(), open_file_test(), pa_ptr(), parse_assembly_elem(), parse_displayname(), parse_extension_string(), parse_extern_script(), parse_file(), parse_li(), parse_options(), parse_response(), parse_ul(), Parser_OutputPin_CheckMediaType(), pdb_init(), pe_map_file(), pesection(), Polygon(), print_elements(), print_something(), ProcessRelocations(), PROFILE_DetectTextEncoding(), PROFILE_Open(), PropVariantCompareEx(), Protocol_Start(), protocol_start(), ProtocolSink_ReportData(), ProtocolSink_ReportProgress(), pstcache_enumerate(), rdssl_sign_ok(), read_expect_async(), read_fat(), read_header(), read_header_file(), read_mapped_resources(), read_post_data_stream(), read_reply(), read_xx_header(), readconfiggeneric(), readerinput_detectencoding(), readerinput_is_utf8(), recover_stateid_delegation(), recover_stateid_lock(), recover_stateid_open(), replay_validate_args(), res_sec_url_cmp(), ResProtocol_Start(), ResProtocolInfo_ParseUrl(), ropes_cmp(), RosSymCreateFromFile(), RosSymCreateFromMem(), RpcAssoc_GetIdleConnection(), RpcAuthInfo_IsEqual(), RpcQualityOfService_IsEqual(), RPCRT4_find_interface(), rpcrt4_ncacn_http_receive_fragment(), RpcServerAssoc_FindContextHandle(), RpcServerUnregisterIf(), RSAENH_CPVerifySignature(), RtlCompareUnicodeString(), RunningObjectTableImpl_GetObject(), RunningObjectTableImpl_GetTimeOfLastChange(), RunningObjectTableImpl_IsRunning(), SampQueryUserAll(), SampQueryUserInternal1(), SampSetUserPassword(), SamrOpenDomain(), sanity_check(), SdbpAddDatabaseGuid(), SdbpOpenDatabase(), send_file(), server_thread(), setup_tables(), SHAreIconsEqual(), ShowTimeZoneList(), SHPropertyBag_OnIniFile(), SHPropertyBag_OnRegKey(), skip_html_comment(), SOFTPUB_VerifyImageHash(), START_TEST(), StgIsStorageFile(), StgIsStorageILockBytes(), stgmedium_cmp(), StorageImpl_LoadFileHeader(), strcmp_w(), String_indexOf(), String_lastIndexOf(), strstr(), strval_eq(), submit_bh_mdl(), SwapSplayLinks(), SystemFunction030(), tally_test_file(), test2(), test_32bit_win(), test_3des(), test_3des112(), test__creat(), test__itoa_s(), test__mbscat_s(), test__mbscpy_s(), test__mbslwr_s(), test__mbsnbcat_s(), test__mbsupr_s(), test__strlwr_s(), test__ultoa_s(), test_aes(), test_aligned_offset_realloc(), test_aligned_realloc(), Test_ApphelpCheckRunApp(), test_appsearch_reglocator(), test_ARGB_conversion(), test_assembly_name_props_line(), test_autocreation(), test_basic_authentication(), test_basic_import(), test_basic_import_unicode(), test_basic_request(), test_bcm_splitinfo(), test_BCryptGenRandom(), test_bitmap(), test_bitmap_font_glyph_index(), test_bitmap_info(), test_bitmapbits(), test_block_cipher_modes(), test_BrowseWindowInfo(), test_buffer_dc_props(), test_builtinproc(), test_cache_read(), test_calchash(), test_catalog_properties(), test_CertStrToNameA(), test_CertStrToNameW(), test_cf_dataobject(), test_clone_mesh(), test_CoInternetParseUrl(), test_collation(), test_color_formats(), test_communication(), test_conformant_array(), test_conformant_string(), test_constant_table(), test_control_procA(), test_convert(), test_ConvertINetUnicodeToMultiByte(), test_CopyBindInfo(), test_CopyFile2(), test_CopyFileA(), test_CopyStgMedium(), Test_CreateFontA(), test_CreateFontIndirect(), test_CreateNamedPipe(), test_CreateTypeLib(), test_CreateWellKnownSid(), test_cross_effect_handle(), test_CryptBinaryToString(), test_custom_palette(), test_D3DReadFileToBlob(), test_D3DXSaveSurfaceToFile(), test_data_cache_dib_contents_stream(), test_data_msg_update(), test_db(), test_dbcs_to_widechar(), test_decode_1bpp(), test_decode_24bpp(), test_decode_4bpp(), test_decode_adobe_cmyk(), test_decode_msg_get_param(), test_decode_rle4(), test_decode_rle8(), test_decodeAltName(), test_decodeAuthorityKeyId(), test_decodeAuthorityKeyId2(), test_decodeBasicConstraints(), test_decodeBits(), test_decodeCatNameValue(), test_decodeCert(), test_decodeCertPolicies(), test_decodeCertToBeSigned(), test_decodeCMSSignerInfo(), test_decodeCRLDistPoints(), test_decodeCRLToBeSigned(), test_decodeExtensions(), test_decodeInt(), test_decodeNameValue(), test_decodeOctets(), test_decodePKCSAttribute(), test_decodePKCSAttributes(), test_decodePKCSContentInfo(), test_decodePKCSSignerInfo(), test_decodeRsaPrivateKey(), test_decodeRsaPublicKey(), test_decodeSequenceOfAny(), test_decodeSPCLink(), test_decodeSPCPEImage(), test_def_itoa(), test_des(), test_dibsections(), test_disassemble_shader(), test_dispinfo(), test_DrawImage(), test_DrawImage_scale(), test_effect_large_address_aware_flag(), test_effect_parameter_block(), test_effect_preshader(), test_effect_preshader_compare_shader_bytecode_(), test_effect_preshader_compare_vconsts_(), test_effect_preshader_op_results_(), test_effect_shared_parameters_compare_vconst_(), test_effect_state_manager(), test_effect_states(), test_effect_unsupported_shader(), test_EM_STREAMIN(), test_embedded_nulls(), test_encodeAltName(), test_encodeAuthorityInfoAccess(), test_encodeAuthorityKeyId(), test_encodeAuthorityKeyId2(), test_encodeBasicConstraints(), test_encodeBits(), test_encodeCatMemberInfo(), test_encodeCatNameValue(), test_encodeCert(), test_encodeCertPolicies(), test_encodeCertPolicyConstraints(), test_encodeCertPolicyMappings(), test_encodeCertToBeSigned(), test_encodeCMSSignerInfo(), test_encodeCRLDistPoints(), test_encodeCRLIssuingDistPoint(), test_encodeCRLToBeSigned(), test_encodeCTL(), test_encodeEnhancedKeyUsage(), test_encodeEnumerated(), test_encodeExtensions(), test_encodeInt(), test_encodeName(), test_encodeNameConstraints(), test_encodeNameValue(), test_encodeOctets(), test_encodePKCSAttribute(), test_encodePKCSAttributes(), test_encodePKCSContentInfo(), test_encodePKCSSignerInfo(), test_encodePKCSSMimeCapabilities(), test_encodePolicyQualifierUserNotice(), test_encodePublicKeyInfo(), test_encodeRsaPublicKey(), test_encodeSequenceOfAny(), test_encodeSPCFinancialCriteria(), test_encodeSPCLink(), test_encodeSPCPEImage(), test_encodeSpOpusInfo(), test_encodeUnicodeName(), test_encodeUnicodeNameValue(), test_encrypt_message(), test_enum_value(), test_enum_vols(), test_EnumChildContainerNames(), test_EnumCodePages(), test_EnumPropNames(), test_export(), test_extra_block(), test_FakeDLL(), test_fdopen(), test_fdsa(), test_fflush(), test_file_inherit(), test_file_inherit_child(), test_file_protocol_url(), test_file_write_read(), test_FileContents1(), test_FileContents2(), test_find_com_redirection(), test_FindFirstVolume(), test_fmtusertypestg(), test_FoldStringW(), test_font_charset(), test_font_metrics(), test_formatrecord_tables(), test_fprintf(), test_fputwc(), test_GdipDrawImagePointRect(), test_GdipGetAllPropertyItems(), test_gen_random(), test_get_atom_name(), test_get_certificate(), test_get_lastChild(), test_get_shader_constant_table_ex(), test_get_text(), test_get_xml(), test_GetAcceptLanguagesA(), test_GetCharABCWidths(), test_GetColorProfileElement(), test_GetColorProfileFromHandle(), test_GetColorProfileHeader(), test_GetDIBits(), test_GetDIBits_scanlines(), test_GetDIBits_selected_DDB(), test_GetDIBits_selected_DIB(), test_GetDynamicTimeZoneInformation(), test_GetGlyphOutline(), test_GetId(), test_GetMappedFileName(), Test_GetMatchingExe(), test_GetPrivateProfileString(), test_GetPtrAW(), test_GetSetDIBits_rtl(), test_GetStateText(), test_GetTimeZoneInformationForYear(), test_GetUserNameA(), test_GetUserNameW(), test_GetVolumePathNameW(), test_gif_frame_sizes(), test_gif_properties(), test_Global(), test_gradientgetrect(), TEST_GUIDFromStringA(), TEST_GUIDFromStringW(), test_handles(), test_hash_message(), test_hash_msg_get_param(), test_HashData(), test_hashes(), test_HexFromBin(), test_hglobal_storage_stat(), test_hmac(), test_ICGetDisplayFormat(), test_ICSeqCompress(), test_IdnToAscii(), test_IdnToNameprepUnicode(), test_IdnToUnicode(), test_image_load(), test_IMLangConvertCharset(), test_ImmGetCompositionString(), test_import(), test_import_export(), test_import_hmac(), test_import_private(), Test_Importer(), test_IMultiLanguage2_ConvertStringFromUnicode(), test_InitPropVariantFromBuffer(), test_iocp_fileio(), test_items(), test_IWinHttpRequest(), test_JapaneseConversion(), test_junction_points(), test_key_derivation(), test_knownFolders(), test_LBS_NODATA(), test_LCMapStringA(), test_load_save_bmp(), test_load_save_emf(), test_load_save_empty_picture(), test_load_save_icon(), test_Loader(), test_LoadStringA(), test_LoadStringW(), test_local_get_atom_name(), test_LZCopy(), test_LZRead(), test_mac(), test_makepath_s(), test_marshal_array(), test_marshal_bstr(), test_marshal_BSTR(), test_marshal_CLIPFORMAT(), test_marshal_HBITMAP(), test_marshal_struct(), test_marshal_VARIANT(), test_mbstowcs(), test_md4_ctx(), test_md4hashfunc(), test_md5_ctx(), test_memcpy_s(), test_message_from_string(), test_message_from_string_wide(), test_message_ignore_inserts(), test_message_insufficient_buffer(), test_message_insufficient_buffer_wide(), test_message_invalid_flags(), test_message_invalid_flags_wide(), test_MessageBoxFontTest(), Test_Misc(), test_MsiGetFileHash(), test_MsiGetProductProperty(), test_msirecord(), test_multibyte_to_unicode_translations(), test_mxwriter_characters(), test_NameSpace(), test_navigator(), test_nodeTypedValue(), test_nonconformant_string(), test_NtAtom(), Test_NtGdiDoPalette_GdiPalSetEntries(), test_NtMapViewOfSection(), test_ntncdf(), test_ntncdf_async(), test_NtQueryDirectoryFile(), test_NtQueryDirectoryFile_case(), test_NtQueryLicenseKey(), test_NtQueryValueKey(), test_offset_in_overlapped_structure(), test_OpenFileById(), test_output(), test_overlapped_buffers(), test_para_numbering(), test_PathUnExpandEnvStrings(), test_pbo_functionality(), test_pipes(), test_png_color_formats(), test_pointer_marshal(), Test_ProcessModules(), test_ProcThreadAttributeList(), test_PropCopyMore(), test_property_table(), test_props(), test_PropVariantToBuffer(), test_PropVariantToString(), test_protocol_url(), test_pseudo_tokens(), test_PSStringFromPropertyKey(), test_put_nodeTypedValue(), test_put_nodeValue(), test_query_logicalprocex(), test_query_object(), test_QueryFullProcessImageNameW(), test_queryvirtualmemory(), test_raw_decompress(), test_rc2(), test_rc4(), test_read_write(), test_readdirectorychanges(), test_readdirectorychanges_cr(), test_readdirectorychanges_filedir(), test_readfileex_pending(), test_readonlyfile_cab(), test_RealizationInfo(), Test_recv(), test_reg_binary(), test_reg_query_info(), test_RegQueryValueExPerformanceData(), test_response_without_headers(), test_riff_write(), test_rng(), test_RpcServerUseProtseq(), test_rsa_encrypt(), test_rsa_round_trip(), test_rtf(), test_RtlAppendAsciizToString(), test_RtlAppendStringToString(), test_RtlAppendUnicodeStringToString(), test_RtlAppendUnicodeToString(), test_RtlCompressBuffer(), test_RtlDecompressBuffer(), test_RtlDuplicateUnicodeString(), test_RtlInitUnicodeStringEx(), test_RtlIpv6StringToAddress(), test_RtlIpv6StringToAddressEx(), test_RtlIsNameLegalDOS8Dot3(), test_RtlQueryPackageIdentity(), test_RtlUnicodeStringToAnsiString(), test_RtlUnicodeToUTF8N(), test_RtlUpperString(), test_RtlUTF8ToUnicodeN(), test_SafeArrayCopyData(), test_save(), test_saxstr(), test_schannel_provider(), test_ScriptGetGlyphABCWidth(), test_ScriptGetLogicalWidths(), test_Sdb(), test_section_access(), test_secure_connection(), test_SecurityManager(), test_SecurityManagerEx2(), test_sequence(), test_set_getsockopt(), test_SetColorProfileElement(), test_SetColorProfileHeader(), test_SetDefaults(), test_SetDIBits(), test_SetDIBits_RLE4(), test_SetDIBits_RLE8(), test_SetDocString(), test_setting_basic_table(), test_SetupAddInstallSectionToDiskSpaceListA(), test_SetupAddSectionToDiskSpaceListA(), test_SetupQueryDrivesInDiskSpaceListA(), test_SetValue(), test_sha2(), test_sha_ctx(), test_SHAnsiToAnsi(), Test_Shimdata(), test_SHUnicodeToUnicode(), test_sid(), test_sign_message(), test_simple_struct_marshal(), test_simpleroundtrip(), test_sip(), test_sip_create_indirect_data(), test_SnmpUtilAsnAnyCpyFree(), test_SnmpUtilOctetsCpyFree(), test_SnmpUtilOidAppend(), test_SnmpUtilOidCpyFree(), test_SnmpUtilVarBindCpyFree(), test_SnmpUtilVarBindListCpyFree(), test_snprintf(), test_SQLGetPrivateProfileString(), test_SQLGetPrivateProfileStringW(), test_SspiPrepareForCredWrite(), test_storage_refcount(), test_StrCatChainW(), test_StrCpyNXA(), test_StrCpyNXW(), test_streamenum(), test_StreamOnIStream(), test_StreamOnMemory(), test_StreamOnStreamRange(), test_StretchBlt(), test_StretchBlt_stretch(), test_string_data(), test_string_data_process(), test_string_termination(), test_stringtable(), test_StringTableLookUpStringEx(), test_struct_align(), test_StrXXX_overflows(), test_swab(), test_SysReAllocStringLen(), test_SystemFunction001(), test_SystemFunction002(), test_SystemFunction003(), test_SystemFunction004(), test_SystemFunction005(), test_SystemFunction006(), test_SystemFunction007(), test_SystemFunction008(), test_SystemFunction009(), test_SystemFunction032(), test_SystemFunction_dec32(), test_SystemFunction_decrypt(), test_SystemFunction_enc32(), test_SystemFunction_encrypt(), test_tiff_properties(), test_towers(), test_transacted_shared(), test_trustee(), test_try_transform(), test_TxSetText(), test_unicode_import(), test_update_semantics(), test_urlcacheA(), test_urlcacheW(), test_URLOpenBlockingStreamW(), test_user_agent(), test_utf7_decoding(), test_utf7_encoding(), test_utils(), test_UuidCreateSequential(), test_validtypes(), test_VarBstrCat(), test_VarBstrFromI4(), test_VarBstrFromR4(), test_VarFix(), test_varianttoproperty(), test_VarInt(), test_verify_message_hash(), test_VirtualAllocEx(), test_vsprintf_p(), test_vswprintf(), test_wcscpy_s(), test_WinHttpAddHeaders(), test_WinHttpSendRequest(), test_WinHttpTimeFromSystemTime(), test_WinHttpTimeToSystemTime(), test_wm_notify_tooltip(), test_write_flush_size(), test_write_registry_values(), test_write_watch(), Test_WSARecv(), test_XMLHTTP(), testAcquireCertPrivateKey(), testAddCertificateLink(), testAddSerialized(), testCertProperties(), TestClassRedirection(), testCollectionStore(), TestCommandLine(), testCRLProperties(), testCryptHashCert(), testDupCert(), testFindCRL(), testFmtId(), testHashPublicKeyInfo(), testHashToBeSigned(), testIntendedKeyUsage(), TestLibDependency(), testMemStore(), testObjTrust(), testPropsHelper(), testQuery(), TestRedirection(), testRegStore(), testSignAndEncodeCert(), testSignSeal(), testTimeEncoding(), text_richtext_filter(), TgaDecoder_Initialize(), TLB_str_memcmp(), TreeListFindItem(), TrustIsCertificateSelfSigned(), try_dsym(), txt_export_class_and_last_write(), update_filter(), update_plugin_window(), UpdateSelection(), UrlCanonicalizeW(), Validate_EmptyShimData_Win10(), VarBstrCmp(), verify_commit(), verify_reg_(), verify_write(), verify_xpointers(), verifySig(), vs_args_equal(), Widget_array(), Widget_bstr(), Widget_complex_struct(), Widget_mystruct(), Widget_mystruct_array(), Widget_mystruct_ptr_ptr(), Widget_thin_struct(), wined3d_device_set_clip_plane(), wined3d_device_set_transform(), wined3d_ffp_frag_program_key_compare(), wined3d_ffp_vertex_program_key_compare(), wined3d_sampler_compare(), wined3d_stateblock_capture(), wined3d_texture_apply_sampler_desc(), winhttp_request_Open(), WinHttpCrackUrl_test(), WkstaEnumAdaptersCallback(), WMSFT_append_typedesc(), WNetEnumCachedPasswords(), wprint_name(), write_if_change(), WSAttemptAutodialName(), XboxMemInit(), xmlDictExists(), xmlDictLookup(), and ZSTD_insertBtAndGetAllMatches().

◆ memcpy()

void * memcpy ( void Dest,
const void Src,
ACPI_SIZE  Count 
)

Definition at line 200 of file utclib.c.

204{
205 char *New = (char *) Dest;
206 char *Old = (char *) Src;
207
208
209 while (Count)
210 {
211 *New = *Old;
212 New++;
213 Old++;
214 Count--;
215 }
216
217 return (Dest);
218}
#define New(t)
Definition: rtf.h:1086

◆ memmove()

void * memmove ( void Dest,
const void Src,
ACPI_SIZE  Count 
)

Definition at line 145 of file utclib.c.

149{
150 char *New = (char *) Dest;
151 char *Old = (char *) Src;
152
153
154 if (Old > New)
155 {
156 /* Copy from the beginning */
157
158 while (Count)
159 {
160 *New = *Old;
161 New++;
162 Old++;
163 Count--;
164 }
165 }
166 else if (Old < New)
167 {
168 /* Copy from the end */
169
170 New = New + Count - 1;
171 Old = Old + Count - 1;
172 while (Count)
173 {
174 *New = *Old;
175 New--;
176 Old--;
177 Count--;
178 }
179 }
180
181 return (Dest);
182}

◆ memset()

void * memset ( void Dest,
int  Value,
ACPI_SIZE  Count 
)

Definition at line 236 of file utclib.c.

240{
241 char *New = (char *) Dest;
242
243
244 while (Count)
245 {
246 *New = (char) Value;
247 New++;
248 Count--;
249 }
250
251 return (Dest);
252}
_Must_inspect_result_ _In_ WDFKEY _In_ PCUNICODE_STRING _Out_opt_ PUSHORT _Inout_opt_ PUNICODE_STRING Value
Definition: wdfregistry.h:413

◆ strcat()

char * strcat ( char DstString,
const char SrcString 
)

Definition at line 568 of file utclib.c.

571{
572 char *String;
573
574
575 /* Find end of the destination string */
576
577 for (String = DstString; *String++; )
578 { ; }
579
580 /* Concatenate the string */
581
582 for (--String; (*String++ = *SrcString++); )
583 { ; }
584
585 return (DstString);
586}
_Must_inspect_result_ _In_ WDFDEVICE _In_ WDFSTRING String
Definition: wdfdevice.h:2433

◆ strchr()

char * strchr ( const char String,
int  ch 
)

Definition at line 501 of file utclib.c.

504{
505
506
507 for ( ; (*String); String++)
508 {
509 if ((*String) == (char) ch)
510 {
511 return ((char *) String);
512 }
513 }
514
515 return (NULL);
516}
#define NULL
Definition: types.h:112

Referenced by __Extract_locale_name(), __get_floor_digits(), __getpublickey_real(), _fmtarglist(), _get_next_token(), _getopt_internal_r(), _IRQL_requires_max_(), _mbschr(), _mbschr_l(), _tiffStreamOpen(), _tmain(), add_param(), add_widl_version_define(), AddrStrToAddr(), adns_submit(), ArcGetNextTokenA(), bad_name(), BiosInitialize(), CabinetFindNext(), cache_entry_create(), ccf_sortlist(), cert_mgr_advanced_dlg_proc(), change_section_attribs(), check_in_programs_list(), cleanup(), config_parse_pair(), convert_to_unix_filename(), convert_usages_str_to_usage(), create_sic(), CsrParseServerCommandLine(), ctype_822special(), ctype_domainunquoted(), decode_html(), DecodeDirectoryURL(), DecodeServEntFromString(), detect_proxy_autoconfig_url_dns(), DissectArcPath(), DoCommand(), DoDESCRIPTIONS(), DoKEYNAME(), DoLANGUAGENAMES(), DoOpen(), DosBuildSysEnvBlock(), DosChangeDirectory(), dosflags(), DosKRNLInitialize(), doWinMain(), dup_ncp(), enum_gac_assembly_dirs(), errflags(), EscapeString(), expect_layeronly_imp(), ext_in_list(), fdom_split(), file_add(), file_cvt(), find_default_printer(), findend(), findgequal(), fnmatch1(), for(), FTP_ParseNextFile(), FTPChdirAndGetCWD(), FTPDecodeURL(), FTPFtw(), FTPFtwL2(), FTPGetCWD(), FTPListToMemory2(), FTPMkdir2(), FTPRemoteGlob(), generate_xa_rr_attributes(), get_attr(), get_constant_element_by_name(), get_graft(), get_hdrguardtext(), get_key(), get_parameter_element_by_name(), get_session_start(), get_username_and_hostname(), GetBookmark(), tinyxml2::XMLUtil::GetCharacterRef(), getenv(), GetExpandedNameA(), GetFunctionFromForwarder(), File::getline(), getline(), GetLineExtentA(), CWineTest::GetNextTest(), getopt(), getopt_internal(), getopt_long(), GetOurHostName(), GetPreviousParamString(), GetProtoGetNextEnt(), GetProtoPatternMatch(), getSection(), GetStartSpoolDate(), gl_do_tab_completion(), gl_histadd(), handle_address_cmd(), handle_child_line(), handle_escape_cmd(), handle_readdir(), has_extension(), HLPFILE_AddHotSpotLinks(), import_file(), inf_process_content(), inf_section_parse(), inf_value_parse(), init(), init_content_type(), init_logger_addr(), initialize_purpose_selection(), InitIgnoreFreeLibrary(), InputChar(), isOffset(), kbd_rc(), KdbpGetCommandLineSettings(), KdpGetTerminalSettings(), LdrpSnapThunk(), LlbEnvRead(), load_persistent_cookie(), LoadFirewallPrefs(), LoadModuleWithSymbols(), MACRO_JumpID(), main(), MakeArgv(), MakeSureDirectoryPathExists(), MayUseFirewall(), menu_ownerdraw_wnd_proc(), MiSnapThunk(), MMDRV_Init(), MSVCRT__create_locale(), MSVCRT_locale_to_LCID(), myTokenize(), names_dump(), NeedCurrentDirectoryForExePathA(), netname2host(), netname2user(), next_arg(), NextLine(), NextOption(), nFTPChdirAndGetCWD(), NSP_GetServiceByNameHeapAllocW(), Output(), XMLStorage::XPathElement::parse(), parse_date(), parse_list_response(), parse_options(), parse_rr(), parse_server_and_port(), parse_stat_response(), parse_uidl_response(), ParseInputFile(), PathParseIconLocationA(), PeLdrpBindImportName(), pfopen(), PopupError(), PostInit(), pp_add_define(), prepare_rpn_result_2(), print_insn(), print_something(), print_status(), PrintMenu(), PrintStartupBanner(), process_long_option(), processRequest(), read_merging_directory(), read_oid_info(), read_password(), read_prop(), read_reply(), read_stdin(), Bookmark::read_url(), readSection(), RemoteGlobCollapse(), rename_file(), retrieve_cached_basic_authorization(), RtlSplayTreeTest(), scan_directory_tree(), scan_sparc_boot(), scan_sunx86_boot(), seamless_get_token(), search_tree_file(), searchfileinpath(), set_target(), SetDllDirectoryA(), skipsemi(), sort_n_finish(), stabs_parse(), stabs_parse_type(), stabs_parse_typedef(), stabs_pts_read_aggregate(), stabs_pts_read_method_info(), stime_arg1(), StoreNameInSft(), str_handle_lines(), streamout(), Strntok(), strpbrk(), Strtok(), strtok(), strtok_s(), SymFromName(), test_appsearch_reglocator(), test_currentworkingdir(), test_dde(), test_EM_AUTOURLDETECT(), test_EnumDateFormatsA(), test_EnumTimeFormatsA(), test_filename(), test_find_executable(), test_FoldStringA(), test_GetDiskInfoA(), test_GetFileInformationByHandleEx(), test_GetLongPathNameA(), test_listbox_dlgdir(), test_longstrings(), test_mbs_help(), test_PrintDlgA(), test_put_hash(), test_tmpnam(), testSetHelper(), testWriteNotWrappedProcessed(), TIFFPrintDirectory(), translate_line(), TranslateFunctionName(), TranslateParameters(), TRIO_ARGS2(), TuiDrawMenuTimeout(), ui_clip_handle_data(), UnMlsD(), UrlGetLocationA(), UserLoginThread(), ValidChar(), vsyslog(), WinHttpDetectAutoProxyConfigUrl(), WinHttpGetDefaultProxyConfiguration(), WinMain(), wpp_add_cmdline_define(), WriteDefaultFirewallPrefs(), WriteLine(), WriteToPipeThread(), WspiapiLegacyGetNameInfo(), and xkeymap_read().

◆ strcmp()

int strcmp ( const char String1,
const char String2 
)

Definition at line 469 of file utclib.c.

472{
473
474
475 for ( ; (*String1 == *String2); String2++)
476 {
477 if (!*String1++)
478 {
479 return (0);
480 }
481 }
482
483 return ((unsigned char) *String1 - (unsigned char) *String2);
484}
_In_ const STRING * String2
Definition: rtlfuncs.h:2369

◆ strcpy()

char * strcpy ( char DstString,
const char SrcString 
)

Definition at line 388 of file utclib.c.

391{
392 char *String = DstString;
393
394
395 /* Move bytes brute force */
396
397 while (*SrcString)
398 {
399 *String = *SrcString;
400
401 String++;
402 SrcString++;
403 }
404
405 /* Null terminate */
406
407 *String = 0;
408 return (DstString);
409}

◆ strlen()

ACPI_SIZE strlen ( const char String)

Definition at line 269 of file utclib.c.

271{
272 UINT32 Length = 0;
273
274
275 /* Count the string until a null is encountered */
276
277 while (*String)
278 {
279 Length++;
280 String++;
281 }
282
283 return (Length);
284}
unsigned int UINT32
_In_ ULONG _In_ ULONG _In_ ULONG Length
Definition: ntddpcm.h:102

Referenced by strstr().

◆ strncat()

char * strncat ( char DstString,
const char SrcString,
ACPI_SIZE  Count 
)

Definition at line 605 of file utclib.c.

609{
610 char *String;
611
612
613 if (Count)
614 {
615 /* Find end of the destination string */
616
617 for (String = DstString; *String++; )
618 { ; }
619
620 /* Concatenate the string */
621
622 for (--String; (*String++ = *SrcString++) && --Count; )
623 { ; }
624
625 /* Null terminate if necessary */
626
627 if (!Count)
628 {
629 *String = 0;
630 }
631 }
632
633 return (DstString);
634}

◆ strncmp()

int strncmp ( const char String1,
const char String2,
ACPI_SIZE  Count 
)

Definition at line 534 of file utclib.c.

538{
539
540
541 for ( ; Count-- && (*String1 == *String2); String2++)
542 {
543 if (!*String1++)
544 {
545 return (0);
546 }
547 }
548
549 return ((Count == ACPI_SIZE_MAX) ? 0 : ((unsigned char) *String1 -
550 (unsigned char) *String2));
551}

Referenced by _ecvt(), _FindPESectionByName(), _mbsnbcmp_l(), _mbsncmp_l(), _strncoll(), _strncoll_l(), _TIFFPrettyPrintField(), _TIFFSetupFields(), _tmain(), AbsoluteToRelative(), add_file(), alloc_rootdir_entry(), ArcOpen(), ata_bblk(), auto_rename(), bad_name(), BlArchGetCpuVendor(), cache_containers_find(), change_section_attribs(), check_4_special_identifiers(), check_atari(), check_dir(), check_file(), check_in_programs_list(), check_menu_item_info(), check_output(), check_rr_dates(), check_rr_relocation(), CheckForNewV3User(), cl_exid_compare(), ClassNametoClassID(), ClasspMyStringMatches(), cmpEnvironment(), compare_query_(), ConMgrProcessInputLine(), ConvertPathCase(), CopyTest::copy_array(), create_sic(), CreateOutputFile(), D3DXGetImageInfoFromFileInMemory(), d3dxinclude_open(), DecodeURLString(), default_init(), Deletehost(), DetectPnpBios(), DiskDetermineMediaTypes(), DoCommand(), domacro(), doWinMain(), driver_fixup(), EfiInitpCreateApplicationEntry(), encodeAndCompareBase64_A(), XMLStorage::XMLReaderBase::EndElementHandler(), enum_password_proc(), errflags(), ext_in_list(), externalui_message_callback(), FATAddEntry(), FatDetermineFatType(), file_add(), file_cd(), file_find(), file_name(), FileToURL(), find_html_symbol(), find_matching_rdn_attr(), find_rr_attribute(), FindDefine(), findend(), FsRecIsUdfsVolume(), FTPDecodeURL(), FTPFileModificationTime(), FxVerifyLogHeader(), get_annotation_by_name(), get_constant_by_name(), get_drive_connection(), get_fileinfo(), get_parameter_by_name(), get_valid_parameter(), get_valid_parameter_block(), getInterfaceInfoByName(), getnetconfigent(), getopt_long(), GetResponse(), GetStabInfo(), tinyxml2::StrPair::GetStr(), GetSystemName(), gl_histadd(), HaliMPBusInfo(), handle_apetag(), handle_dot(), handle_gdb_query(), handle_gdb_set_thread(), handle_gdb_v(), handle_setexattr(), XMLStorage::Buffer::has_CDEnd(), has_extension(), HttpHeaders_test(), HttpSendRequestEx_test(), id3_link(), import_base64_certs_from_fp(), InitializeLibrary(), InternalIsOS2OrOldWin(), is_cygwin_ea(), is_valid_file(), iso2022jp_mbtowc(), iso2022jp_wctomb(), IsVesaBiosOk(), joliet_compare_dirs(), KdbpCliInterpretInitFile(), KdDebuggerInitialize0(), KdInitSystem(), lwip_strnstr(), mac_cmp(), macho_load_section_info(), main(), map_nfs4ace_who(), match_line(), ME_HandleMessage(), ME_StreamIn(), merge_isofs(), MiFindInitializationCode(), mkstemps(), MPEGSplitter_pre_connect(), multi_addr_find(), name_cmp(), netname2host(), netname2user(), nfs41_abs_path_compare(), nsIOService_NewURI(), ntlm_AcceptSecurityContext(), ntlm_InitializeSecurityContextW(), OmNavigator_get_appVersion(), XMLStorage::XMLReaderBase::parse(), parse_arguments(), parse_file(), parse_new_id3(), parse_rr(), parse_rrflags(), ParseCommandLine(), ParseFile(), ParseHostLine(), ParseInputFile(), tinyxml2::StrPair::ParseText(), Phase1InitializationDiscard(), pipe_thread(), print_insn(), PrintNameTable(), PrintStrangeMenu(), process_long_option(), process_optarg(), promote_framename(), PutBookmark(), read_merging_directory(), ReadStyleSheet(), RemoteCompletionFunction(), RemoteGlobCollapse(), RpcStringBindingParseA(), run_helper(), SendCommand(), server_compare(), server_ddeml_callback(), setpeer(), setup_dinput_options(), TestCase::shouldRunThis(), START_TEST(), str_startswith(), StrDupShortenPath(), tinyxml2::XMLUtil::StringEqual(), StringExpands(), strrstr(), strstr(), subdirs(), test_asciimode2(), test_cache_read_gzipped(), test_ConvertINetUnicodeToMultiByte(), test_DEVMODEA(), test_EM_GETLINE(), test_Environment(), test_FakeDLL(), test_filter_graph(), test_find_executable(), test_GetDateFormatA(), test_GetModuleFileNameEx(), test_GetProcessImageFileNameA(), test_GetVolumeNameForVolumeMountPointA(), test_I10_OUTPUT(), test_IMultiLanguage2_ConvertStringFromUnicode(), test_ip_pktinfo(), test_midiOut_device(), test_midiStream(), test_MsiEnumPatchesEx_usermanaged(), test_MsiGetFileVersion(), test_MsiGetProductProperty(), test_MsiGetSourcePath(), test_msirecord(), test_mxwriter_encoding(), test_navigator(), test_OpenFile(), test_PathUnExpandEnvStrings(), test_query_process_image_file_name(), test_RtlCopyString(), test_SHGetFolderPathAndSubDirA(), test_sscanf(), test_strncpy(), test_WM_GETTEXT(), test_WNetCachePassword(), test_xcvt(), testD3DInclude_open(), testD3DXInclude_open(), TIFFCleanup(), translate_files(), TRIO_ARGS3(), TypeNametoTypeID(), UDFFindVRS(), UDFGetDiskInfo(), UDFLoadLogicalVol(), UnLslR(), UnMDTMDate(), urlcache_entry_commit(), UrlCompareA(), UrlGetLocationA(), VfdGetDriverConfig(), VfdGetImageInfo(), WinHttpGetDefaultProxyConfiguration(), WinLdrSetupEms(), write_dlldata(), and xmlStrncmp().

◆ strncpy()

char * strncpy ( char DstString,
const char SrcString,
ACPI_SIZE  Count 
)

Definition at line 427 of file utclib.c.

431{
432 char *String = DstString;
433
434
435 /* Copy the string */
436
437 for (String = DstString;
438 Count && (Count--, (*String++ = *SrcString++)); )
439 {;}
440
441 /* Pad with nulls if necessary */
442
443 while (Count--)
444 {
445 *String = 0;
446 String++;
447 }
448
449 /* Return original pointer */
450
451 return (DstString);
452}

◆ strpbrk()

char * strpbrk ( const char String,
const char Delimiters 
)

Definition at line 302 of file utclib.c.

305{
306 const char *Delimiter;
307
308
309 for ( ; *String != '\0'; ++String)
310 {
311 for (Delimiter = Delimiters; *Delimiter != '\0'; Delimiter++)
312 {
313 if (*String == *Delimiter)
314 {
315 return (ACPI_CAST_PTR (char, String));
316 }
317 }
318 }
319
320 return (NULL);
321}
#define ACPI_CAST_PTR(t, p)
Definition: actypes.h:544

Referenced by strtok().

◆ strstr()

char * strstr ( char String1,
char String2 
)

Definition at line 653 of file utclib.c.

656{
657 ACPI_SIZE Length;
658
659
661 if (!Length)
662 {
663 return (String1);
664 }
665
666 while (strlen (String1) >= Length)
667 {
668 if (memcmp (String1, String2, Length) == 0)
669 {
670 return (String1);
671 }
672 String1++;
673 }
674
675 return (NULL);
676}
ACPI_SIZE strlen(const char *String)
Definition: utclib.c:269
int memcmp(void *VBuffer1, void *VBuffer2, ACPI_SIZE Count)
Definition: utclib.c:112

Referenced by __Extract_locale_name(), _mbsstr_l(), _server_read_request(), acpi_bus_match(), assign_file_addresses(), Base64WithHeaderAndTrailerToBinaryA(), Bus_PDO_PnP(), Bus_PDO_QueryDeviceCaps(), ButtonWaitThread(), CmdLineParse(), CmpGetBiosVersion(), copy_headers_to_buf(), count_pars(), crash_and_debug(), create_body_offset_list(), D3DXCompileShader(), doDebugger(), DoDESCRIPTIONS(), DoKEYNAME(), DoLANGUAGENAMES(), DoTestEntry(), DriverEntry(), EnumSymbolsProc(), ExpInitializeExecutive(), extract_test(), extract_test_proc(), figurefiletype(), file_write_http_header(), FilenameExtensionIndicatesASCII(), find_str(), findend(), FsVolumeInfo(), FTPFileExistsNlst(), FTPFileExistsStat(), FTPQueryFeatures(), get_attr(), get_info_log_line(), get_line(), get_subtests(), getline(), getSection(), GetSystemName(), gl_check_inputrc_for_vi(), HalpDebugPciDumpBus(), HalpGetParameters(), handle_gdb_query(), handle_gdb_read_mem(), handle_gdb_set_thread(), handle_gdb_thread_alive(), handle_gdb_write_mem(), header_cb(), InbvDriverInitialize(), init_debug(), InitPrefs(), InitTermcap(), InternetCreateUrlA_test(), IopCreateArcNames(), IopStartRamdisk(), is_ssi_file(), KdDebuggerInitialize0(), KdInitSystem(), KiInitializeKernel(), KiInitializeKernelMachineDependent(), LlbEnvRead(), Load_CP2Unicode_Table(), LoadAndBootWindowsCommon(), LoadReactOSSetup(), main(), Main_DirectDraw_GetDeviceIdentifier7(), MayUseFirewall(), NextLine(), ntlm_InitializeSecurityContextW(), OpenControlConnection(), openSection(), parse_obj_node_param(), ParseField(), CDFParser::PerformFileCopy(), Phase1InitializationDiscard(), PoInitSystem(), process_pending_renames(), process_preprocessor(), processRequest(), read_dependencies(), read_value(), regdump(), RegInitializeRegistry(), run_child_process(), run_tests(), search_addchar(), search_back(), search_forw(), SearchCHM_File(), select_card_handler(), send_file(), server_thread(), shader_hw_sgn(), shader_trace_init(), TestCase::shouldRunThis(), SMTPTransport_CallbackSendHello(), CHttpClient::SplitUri(), spy_init(), START_TEST(), strip_comments(), test_accept_encoding(), test_argify(), test_BuildCommDCB(), test_complicated_cookie(), test_cookie_header(), test_EM_STREAMOUT_empty_para(), test_EM_STREAMOUT_FONTTBL(), test_ExitCode(), test_ExtractAssociatedIcon(), test_FindFirstFile_wildcards(), test_getstring_no_extra(), test_header(), test_hittest(), test_listbox_dlgdir(), test_long_url(), test_MsiGetFileVersion(), test_query_dos_deviceA(), test_SHGetFolderPathA(), TrimNonPrintableProd(), TRIO_ARGS2(), unfold_header(), UnLslRLine(), wined3d_guess_card_vendor(), wined3d_guess_gl_vendor(), WinLdrInitializePhase1(), WinMain(), wstr_contains(), xHalIoAssignDriveLetters(), XIPInit(), and xkeymap_read().

◆ strtok()

char * strtok ( char String,
const char Delimiters 
)

Definition at line 338 of file utclib.c.

341{
342 char *Begin = String;
343 static char *SavedPtr;
344
345
346 if (Begin == NULL)
347 {
348 if (SavedPtr == NULL)
349 {
350 return (NULL);
351 }
352 Begin = SavedPtr;
353 }
354
355 SavedPtr = strpbrk (Begin, Delimiters);
356 while (SavedPtr == Begin)
357 {
358 *Begin++ = '\0';
359 SavedPtr = strpbrk (Begin, Delimiters);
360 }
361
362 if (SavedPtr)
363 {
364 *SavedPtr++ = '\0';
365 return (Begin);
366 }
367 else
368 {
369 return (NULL);
370 }
371}
ACPI_BUFFER *RetBuffer ACPI_BUFFER *RetBuffer char ACPI_WALK_RESOURCE_CALLBACK void *Context ACPI_BUFFER *RetBuffer UINT16 ACPI_RESOURCE **ResourcePtr ACPI_GENERIC_ADDRESS *Reg UINT32 *ReturnValue UINT8 UINT8 *Slp_TypB ACPI_PHYSICAL_ADDRESS PhysicalAddress64 UINT32 UINT32 *TimeElapsed UINT32 ACPI_STATUS const char UINT32 ACPI_STATUS const char UINT32 const char const char UINT32 const char BOOLEAN Begin
Definition: acpixf.h:1301
char * strpbrk(const char *String, const char *Delimiters)
Definition: utclib.c:302

◆ strtoul()

UINT32 strtoul ( const char String,
char **  Terminator,
UINT32  Base 
)

Definition at line 696 of file utclib.c.

700{
701 UINT32 converted = 0;
703 UINT32 sign;
704 const char *StringStart;
707
708
709 /*
710 * Save the value of the pointer to the buffer's first
711 * character, save the current errno value, and then
712 * skip over any white space in the buffer:
713 */
714 StringStart = String;
715 while (isspace (*String) || *String == '\t')
716 {
717 ++String;
718 }
719
720 /*
721 * The buffer may contain an optional plus or minus sign.
722 * If it does, then skip over it but remember what is was:
723 */
724 if (*String == '-')
725 {
727 ++String;
728 }
729 else if (*String == '+')
730 {
731 ++String;
733 }
734 else
735 {
737 }
738
739 /*
740 * If the input parameter Base is zero, then we need to
741 * determine if it is octal, decimal, or hexadecimal:
742 */
743 if (Base == 0)
744 {
745 if (*String == '0')
746 {
747 if (tolower (*(++String)) == 'x')
748 {
749 Base = 16;
750 ++String;
751 }
752 else
753 {
754 Base = 8;
755 }
756 }
757 else
758 {
759 Base = 10;
760 }
761 }
762 else if (Base < 2 || Base > 36)
763 {
764 /*
765 * The specified Base parameter is not in the domain of
766 * this function:
767 */
768 goto done;
769 }
770
771 /*
772 * For octal and hexadecimal bases, skip over the leading
773 * 0 or 0x, if they are present.
774 */
775 if (Base == 8 && *String == '0')
776 {
777 String++;
778 }
779
780 if (Base == 16 &&
781 *String == '0' &&
782 tolower (*(++String)) == 'x')
783 {
784 String++;
785 }
786
787 /*
788 * Main loop: convert the string to an unsigned long:
789 */
790 while (*String)
791 {
792 if (isdigit (*String))
793 {
794 index = (UINT32) ((UINT8) *String - '0');
795 }
796 else
797 {
798 index = (UINT32) toupper (*String);
799 if (isupper (index))
800 {
801 index = index - 'A' + 10;
802 }
803 else
804 {
805 goto done;
806 }
807 }
808
809 if (index >= Base)
810 {
811 goto done;
812 }
813
814 /*
815 * Check to see if value is out of range:
816 */
817
819 (UINT32) Base))
820 {
822 ReturnValue = 0; /* reset */
823 }
824 else
825 {
826 ReturnValue *= Base;
828 converted = 1;
829 }
830
831 ++String;
832 }
833
834done:
835 /*
836 * If appropriate, update the caller's pointer to the next
837 * unconverted character in the buffer.
838 */
839 if (Terminator)
840 {
841 if (converted == 0 && ReturnValue == 0 && String != NULL)
842 {
843 *Terminator = (char *) StringStart;
844 }
845 else
846 {
847 *Terminator = (char *) String;
848 }
849 }
850
851 if (Status == AE_ERROR)
852 {
854 }
855
856 /*
857 * If a minus sign was present, then "the conversion is negated":
858 */
860 {
862 }
863
864 return (ReturnValue);
865}
unsigned char UINT8
#define isspace(c)
Definition: acclib.h:69
#define isdigit(c)
Definition: acclib.h:68
#define isupper(c)
Definition: acclib.h:71
UINT32 void void ** ReturnValue
Definition: acevents.h:216
#define AE_ERROR
Definition: acexcep.h:109
#define AE_OK
Definition: acexcep.h:97
#define ACPI_SIGN_POSITIVE
Definition: acmacros.h:232
#define ACPI_SIGN_NEGATIVE
Definition: acmacros.h:233
UINT32 ACPI_STATUS
Definition: actypes.h:460
#define ACPI_UINT32_MAX
Definition: actypes.h:66
#define index(s, c)
Definition: various.h:29
Status
Definition: gdiplustypes.h:25
GLuint index
Definition: glext.h:6031
#define sign(x)
Definition: mapdesc.cc:613
_In_opt_ ULONG Base
Definition: rtlfuncs.h:2451
int toupper(int c)
Definition: utclib.c:881
int tolower(int c)
Definition: utclib.c:902

Referenced by ArcGetNextTokenA(), BiosInitialize(), byte_till_end(), ccf_options(), ccf_sortlist(), check_option(), CmdLineParse(), CmpGetBiosDate(), CommandDumpSector(), CommandPartInfo(), DriveMapGetBiosDriveNumber(), ExecuteKill(), fdom_split(), hhp_reader::get_language_code(), GetAddrInfoW(), GetDlgItemInt(), GetFunctionFromForwarder(), getICMPStats(), init_logger_addr(), KdbGetHexNumber(), KdbpCmdBackTrace(), KdbpCmdDisassembleX(), KdbpCmdEnableDisableClearBreakPoint(), KdbpCmdFilter(), KdbpCmdSet(), KdbpCmdStep(), KdbpGetHexNumber(), KdpGetDebugMode(), KdpUpdateTerminalSize(), main(), pa_ptr(), parse_uint(), TANSIParser::ParseEscapeANSI(), ParseFile(), ParsePEHeaders(), PcVideoSetDisplayMode(), ReadQWordNode(), seamless_process_line(), settimeout(), strtoulptr(), test_child_heap(), test_strtol(), update_loglevel(), WinLdrSetupEms(), WspiapiLegacyGetAddrInfo(), and xkeymap_read().

◆ tolower()

int tolower ( int  c)

Definition at line 902 of file utclib.c.

904{
905
906 return (isupper(c) ? ((c)+0x20) : (c));
907}
const GLubyte * c
Definition: glext.h:8905

Referenced by strtoul().

◆ toupper()

int toupper ( int  c)

Definition at line 881 of file utclib.c.

883{
884
885 return (islower(c) ? ((c)-0x20) : (c));
886}
#define islower(c)
Definition: acclib.h:72

Referenced by strtoul().

Variable Documentation

◆ AcpiGbl_Ctypes

const UINT8 AcpiGbl_Ctypes[257]

Definition at line 918 of file utclib.c.