Skip to main content

strlen

warning

This function starts with lowercase letter.

คำอธิบาย

Get the length of a string.

NameDescription
const string[]The string to get the length of.

ส่งคืน

The length of the string as an integer.

ตัวอย่าง

new stringLength = strlen("This is an example string."); // stringLength is now set to 26

ฟังก์ชั่นที่เกี่ยวข้องกัน

  • strcmp: Compare two strings to check if they are the same.
  • strfind: Search for a string in another string.
  • strtok: Get the next 'token' (word/parameter) in a string.
  • strdel: Delete part of a string.
  • strins: Insert text into a string.
  • strmid: Extract part of a string into another string.
  • strpack: Pack a string into a destination string.
  • strval: Convert a string into an integer.
  • strcat: Concatenate two strings into a destination reference.