summaryrefslogtreecommitdiff
path: root/ext/standard/pack.c
diff options
context:
space:
mode:
authorZeev Suraski <zeev@php.net>2001-08-11 17:03:37 +0000
committerZeev Suraski <zeev@php.net>2001-08-11 17:03:37 +0000
commitc0404f46311e5b519dc51697e181bb39ca8d09d2 (patch)
tree291959f75d7b2a3f3e171830ed6eea76b5d98b4d /ext/standard/pack.c
parentf6f6c4d7e63d2eaf4ece7aee66f46a013b29bffa (diff)
downloadphp-git-c0404f46311e5b519dc51697e181bb39ca8d09d2.tar.gz
Whitespace
Diffstat (limited to 'ext/standard/pack.c')
-rw-r--r--ext/standard/pack.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/ext/standard/pack.c b/ext/standard/pack.c
index 75544c41b7..cf4a55108a 100644
--- a/ext/standard/pack.c
+++ b/ext/standard/pack.c
@@ -85,7 +85,7 @@ static void php_pack(pval **val, int size, int *map, char *output)
/* }}} */
/* pack() idea stolen from Perl (implemented formats behave the same as there)
- * Implemented formats are A,a,h,H,c,C,s,S,i,I,l,L,n,N,f,d,x,X,@.
+ * Implemented formats are A, a, h, H, c, C, s, S, i, I, l, L, n, N, f, d, x, X, @.
*/
/* {{{ proto string pack(string format, mixed arg1 [, mixed arg2 [, mixed ...]])
Takes one or more arguments and packs them into a binary string according to the format argument */
@@ -288,7 +288,7 @@ PHP_FUNCTION(pack)
memset(&output[outputpos], (code == 'a') ? '\0' : ' ', arg);
val = argv[currentarg++];
convert_to_string_ex(val);
- memcpy(&output[outputpos],(*val)->value.str.val,
+ memcpy(&output[outputpos], (*val)->value.str.val,
((*val)->value.str.len < arg) ? (*val)->value.str.len : arg);
outputpos += arg;
break;
@@ -304,7 +304,7 @@ PHP_FUNCTION(pack)
v = (*val)->value.str.val;
outputpos--;
if(arg > (*val)->value.str.len) {
- php_error(E_WARNING,"pack type %c: not enough characters in string",code);
+ php_error(E_WARNING, "pack type %c: not enough characters in string", code);
arg = (*val)->value.str.len;
}
@@ -472,7 +472,7 @@ static long php_unpack(char *data, int size, int issigned, int *map)
* chars1, chars2, and ints.
* Numeric pack types will return numbers, a and A will return strings,
* f and d will return doubles.
- * Implemented formats are A,a,h,H,c,C,s,S,i,I,l,L,n,N,f,d,x,X,@.
+ * Implemented formats are A, a, h, H, c, C, s, S, i, I, l, L, n, N, f, d, x, X, @.
*/
/* {{{ proto array unpack(string format, string input)
Unpack binary string into named array elements according to format argument */
@@ -486,7 +486,7 @@ PHP_FUNCTION(unpack)
int inputpos, inputlen;
int i;
- if ((ZEND_NUM_ARGS() != 2) || zend_get_parameters_ex(2,&formatarg,&inputarg) == FAILURE) {
+ if ((ZEND_NUM_ARGS() != 2) || zend_get_parameters_ex(2, &formatarg, &inputarg) == FAILURE) {
WRONG_PARAM_COUNT;
}