converting C to PHP

From: Date: Thu, 13 Jun 2002 03:12:18 +0000
Subject: converting C to PHP
Groups: php.general 
Request: Send a blank email to php-general+get-101870@lists.php.net to get a copy of this message
I'm converting some C functions to PHP and have come across this: int skipf(..., char *format) { /* ... */ cp = format; char *cp, *cp2; multiplier = strtol(cp, &cp2, 10); /* ... */ } How can I implement this line in PHP ? multiplier = strtol(cp, &cp2, 10); Oh, and an example of format is "12L20W2P"

« previous php.general (#101870) next »