Main Menu

HOME

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

Make money selling software. Check this out here

Hosted clickbank mall. Check this out here




   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
Create a link(ASP.net)
id of user using cookie(Javascript)
Basic currency conversion(PHP)
show all files in a directory(VB.net)
Create a php file(C)
read contents of a directory(PHP)
redirection function(Javascript)
Backwards text(Javascript)

    




Copyright © 2003 by programmershelp.co.uk