Main Menu

HOME

.Net
ASP
Assembly
C
C++
Delphi
HTML
Java
JavaScript Site
MySQL
PC interface
Powershell
Perl
PHP
VBScript
Visual Basic
XML

US Job listings




   Misc

   Amazon

   Links

    


Strlen example
 

 

 

Description

Another strlen example

Code

#include <stdio.h>
#include <string.h>

int main()
{
char title[100];
int characters;
printf("Please enter your desired , no more than 6 characters.\n");
scanf("%s",&title);
/*get the amount of characters*/
characters = strlen(title);
if(characters > 6)
printf("Too many characters.\n");
else
printf("password accepted.\n");
return 0;
}

Information

tested using LCC WIn 32

 

 

 

 

Download

strlen1.txt


 




   Sponsors
 

   Software
500 Java Tips E-book
PHP editor
PERL editor
Beginning Java
Beginning Visual Basic
Learn VB.net
Learn VB 6
VB and databases
ASP image library
C++ builder programming
C++ fundamentals

   Source Code
Convert from binary to decimal(C Sharp)
Size of a webpage with PHP and cURL(PHP)
change file extensions(VB)
Reverse a string(ASP)
File System of drive(ASP)
shared resources on your pc(VB)
insert contents of text file into a text box(VB)
copy a file using CopyTo(C Sharp)

    




Copyright © 2003 by programmershelp.co.uk