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
get current url using PHP_SELF(PHP)
swap mouse buttons(VB)
change the priority of a process(VBScript)
decimal to octal conversion(PHP)
read from a file using the filesystemobject(ASP)
Download an RSS feed(Powershell)
display the timezone(VB.net)
start windows calculator(Powershell)

    




Copyright © 2003 by programmershelp.co.uk