Created
April 2, 2015 02:02
-
-
Save ixqbar/d95a876c0e5cf4cea69c to your computer and use it in GitHub Desktop.
php扩展-字符串组装
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
char *host=NULL; | |
int host_len; | |
host_len = spprintf(&host, 0, "%s:%d", redis_sock->host, redis_sock->port); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment