Top "Strlen" questions

A standard C function that returns the length of a string.

How do I find the number of bytes within UTF-8 string with PHP?

I have the following function from the php.net site to determine the # of bytes in an ASCII and UTF-8 …

php string utf-8 byte strlen
Is There A Difference Between strlen()==0 and empty()?

I was looking at some form validation code someone else had written and I saw this: strlen() == 0 When testing to …

php strlen
How to use calloc() in C?

Shouldn't I get an error if my string goes over 9 characters long in this program? // CString.c // 2.22.11 #include <stdio.…

c string gcc calloc strlen
getting the length of an array using strlen in g++ compiler

could someone explain why i am getting this error when i am compiling the source using following g++ compiler #include &…

c++ string cstring strlen
What if a null character is present in the middle of a string?

I understand that the end of a string is indicated by a null character, but i cannot understand the output …

c null sizeof strlen
Quick strlen question

I've come to bother you all with another probably really simple C question. Using the following code: int get_len(…

c string strlen
C Programming - Functionality of strlen

I'm working to try and understand some string functions so I can more effectively use them in later coding projects, …

c string strlen
Usage of fgets function in C

One of my assignments in to write my own UNIX Shell. To receive input from the user, I am using …

c shell unix fgets strlen
invalid conversion from 'const void*' to 'PVOID {aka void*}' [-fpermissive]

I am writing a program (well... using sample code form Tektronix) to test the message exchange over the network to …

c++ strlen gpib
strlen on array returns 5 in php

From the docs - int strlen ( string $string ) it takes string as a parameter, now when I am doing this- $…

php arrays strlen