Not logged in. · Lost password · Register

MatthiasM
Avatar
Member since Nov 2003
459 posts
Subject: string to int
Wie kann ich denn aus char *argv[1]  int port_number machen?
Der Computer ist ein mechanischer Hohlkopf.
snehls
Superfreund aka Der Schwede
Avatar
Member since Oct 2002
750 posts
atoi
"I will speculate that today’s single-threaded applications as actually used in the field could actually see a performance boost for most users by going to a dual-core chip, not because the extra core is actually doing anything useful, but because it is running the adware and spyware that infest many users’ systems and are otherwise slowing down the single CPU that user has today."
MatthiasM
Avatar
Member since Nov 2003
459 posts
:-D
Der Computer ist ein mechanischer Hohlkopf.
Max
Member since Oct 2002
1296 posts
also ich habs des net gebraucht :-D

es gibt Funktionen, die arbeiten auch mit Strings als Portnummer  :cheesy:
BLUBB
Robert
(Administrator)
Avatar
Member since Nov 2002
559 posts
@Max:

hast du dann auch '0' abgezogen, oder was für eine Funktion hast du benutzt?
Ummm, yeah. We couldn't run an ad that said no Portuguese, but ummm... no Portuguese!
This post was edited on 2004-01-16, 11:44 by Robert.
Max
Member since Oct 2002
1296 posts
ich hab getaddrinfo() verwendet, die kann auch ipv6 :-D
BLUBB
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Go to forum
Datenschutz | Kontakt
Powered by the Unclassified NewsBoard software, 20150713-dev, © 2003-2011 by Yves Goergen