eHow launches Android app: Get the best of eHow on the go.

How to Use the Strlen Command in C

Video Preview

Summary: The strlen command in C is referring to string length. Use the strlen command in C with tips from a software developer in this free video on computer training.

Views:
478
Presenter
By Dave Andrews
eHow Presenter

Dave Andrews is a software developer with a business and Web site selling programs and other computer services in Franklin, Tenn. Having worked in the IT industry for more than 8...read more

Post a Comment

Post a Comment

Video Transcript

"Hi, my name is Dave Andrews, and today, I'm going to show you how to use the Strlen function, in C . If you're reading Strlen, what you're basically saying, is string length. A string in C , is just a collection of characters, that are strung together to form a sentence, or a phrase, or a word. Let's take a look at my program here. What I'm doing, is I'm including the I input, output stream sub system, and in my main function, which is the very first function that is run, in any C program. I'm declaring a string here. A string is a grouping of char characters, or just character files that are a single byte long. I've named it Text, and it can hold a maximum of one hundred characters. I've assigned it the value, This is my string. Immediately after that, I'm going to send some data to C-out, which is the C subsystem, for displaying data on the screen. What I'm going to give it, is the Strlen function, and the text stream that I've just created. That's going to show us the length of the text value, so let's compile our program, using G . You can also use a Microsoft Editor, and let's run the result. As you can see, it is output the number 18 to the screen, which is the length of the stream that I created. My name is Dave Andrews, and I've just showed you how to use the Strlen function, in C ."

eHow Article: How to Use the Strlen Command in C

Related Ads

  • Have you done this? Click here to let us know.
Computers
Alexia Petrakos,

Meet Alexia Petrakos eHow's Computers Expert.

Get Free Computers Newsletters

Copyright © 1999-2009 eHow, Inc. Use of this web site constitutes acceptance of the eHow Terms of Use and Privacy Policy.   en-US Portions of this page are modifications based on work created and shared by Google and used according to terms described in the Creative Commons 3.0 Attribution License.

eHow Computers
eHow_eHow Technology and Electronics