PHP: ZEND_STRL - Manual

downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

ZEND_STRS ZEND_SET_SYMBOL

Last updated: Sat, 27 Jan 2007

view this page in

# ZEND_STRL

ZEND_STRL -- Pass string pointer and length in one operation

## Описание

#include <zend.h>

void ZEND_STRL ( char * str )

This is a convenience macro that can be used when passing a static string to a function that requires a string length argument together with a string. This saves duplicating the static string in the sourcecode or adding an extra variable for it.

Пример 46-1. ZEND_STRL() example

    write(0, ZEND_STRL("Hello World!"));
    /* same as
    char str[] = "Hello World!";
    write(0, str, sizeof(str)-1);
    */

## Список параметров

`str`

  Pointer to a zero terminated string.

add a note User Contributed Notes
ZEND_STRL
There are no user contributed notes for this page.
ZEND_STRS ZEND_SET_SYMBOL

Last updated: Sat, 27 Jan 2007
show source | credits | stats | sitemap | contact | advertising | mirror sites
Copyright © 2001-2007 The PHP Group
All rights reserved.
This mirror generously provided by: Yahoo! Inc.
Last updated: Sat Mar 10 10:36:09 2007 PST