2 +--------------------------------------------------------------------+
3 | libmemcached - C/C++ Client Library for memcached |
4 +--------------------------------------------------------------------+
5 | Redistribution and use in source and binary forms, with or without |
6 | modification, are permitted under the terms of the BSD license. |
7 | You should have received a copy of the license in a bundled file |
8 | named LICENSE; in case you did not receive a copy you can review |
9 | the terms online at: https://opensource.org/licenses/BSD-3-Clause |
10 +--------------------------------------------------------------------+
11 | Copyright (c) 2006-2014 Brian Aker https://datadifferential.com/ |
12 | Copyright (c) 2020 Michael Wallner <mike@php.net> |
13 +--------------------------------------------------------------------+
16 #include "mem_config.h"
22 #include "libmemcached-1.0/memcached.h"
24 int main(int argc
, char *argv
[]) {
26 std::cerr
<< "No arguments provided." << std::endl
;
30 for (int x
= 1; x
< argc
; x
++) {
32 memcached_return_t rc
;
33 rc
= libmemcached_check_configuration(argv
[x
], strlen(argv
[x
]), buffer
, sizeof(buffer
));
35 if (rc
!= MEMCACHED_SUCCESS
) {
36 std::cerr
<< "Failed to parse argument #" << x
<< " " << argv
[x
] << std::endl
;
37 std::cerr
<< buffer
<< std::endl
;