Sponsored Content
Full Discussion: Preprocessor
Top Forums Programming Preprocessor Post 302209566 by ramen_noodle on Friday 27th of June 2008 10:42:26 AM
Old 06-27-2008
Concatenation operator.
See wikipedia here: C preprocessor - Wikipedia, the free encyclopedia, under
token concatenation.
 

3 More Discussions You Might Find Interesting

1. Programming

enum and C preprocessor

Say I have a list of enumerations I wish to use to select a variable at compile-time: enum pins { PIN_A=1, PIN_B=7, PIN_C=6, } int VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7; #define PIN_TO_VAR(NUM) VAR ## NUM int main(void) { PIN_TO_VAR(PIN_A)=32;... (2 Replies)
Discussion started by: Corona688
2 Replies

2. Programming

Preprocessor __FILE__ for Debugging

Hi, Just wondering if it is possible to trim the file path output by __FILE__ preprocessor in my debugging line. Let's say my main.cpp file is found in C:\User\MyName\SystemA\Mod1\SubMod2\Test\main.cpp for __FILE__, I just want the filename - main.cpp to be printed, instead of the entire... (2 Replies)
Discussion started by: tanlccc
2 Replies

3. Programming

Use #if not defined with OR boolean logic in preprocessor directives

I am currently using Linux CentOS and programming in FORTRAN 90 using Portland 7.1 compiler. I am able to set in the preprocessor directives a flag called TEST. when I go to use logic in my code i can write #ifdef TEST execute something #endif Furthermore, if I want to negate the... (2 Replies)
Discussion started by: prodigious8
2 Replies
WBOX(1) 						      General Commands Manual							   WBOX(1)

NAME
wbox - HTTP testing tool and configuration-less HTTP server SYNOPSIS
wbox <url> [ options ] wbox servermode webroot <path> [serverport <portnumber> (def 8081)] DESCRIPTION
wbox aims to help you having fun while testing HTTP related stuff. You can use it to perform many tasks, including the following: - Benchmarking how much time it takes to generate content for your web application. - Web server and web application stressing. - Testing virtual domains configuration without the need to alter your local resolver. - Use it as a configuration-less HTTP server to share files! OPTIONS
<number> Stop after <number> requests compr Send Accept-Encoding: gzip,deflate in request showhdr Show the HTTP reply header dump Show the HTTP reply header + body silent Don't show status lines head Use the HEAD method instead of GET http10 Use HTTP/1.0 instead of HTTP/1.1 close Close the connection after reading few bytes host <hostname> Use <hostname> as Host: field in HTTP request timesplit Show transfer times for different data chunks wait <number> Wait <number> seconds between requests. Default 1. clients <number> Spawn <number> concurrent clients (via fork()). referer <url> Send the specified referer header. cookie <name> <val> Set cookie name=val, can be used multiple times. maxclients <number> Max concurrent clients in server mode (default 20). -h or --help Show this help. -v Show version. USAGE EXAMPLES
wbox wikipedia.org (simplest, basic usage) wbox wikipedia.org 3 compr wait 0 (three requests, compression, no delay) wbox wikipedia.org 1 showhdr silent (just show the HTTP reply header) wbox wikipedia.org timesplit (show splitted time information) wbox 1.2.3.4 host example.domain (test a virtual domain at 1.2.3.4) wbox servermode webroot /tmp/mydocuments (Try it with http://127.0.0.1:8081) TUTORIAL
Wbox is trivial to use but, in order to understand better what wbox is and how to use it, you may want to read the TUTORIAL inside the /usr/share/doc/wbox/ directory. AUTHOR
wbox was written by Salvatore 'antirez' Sanfilippo <antirez@gmail.com>. This manual page was written by Alberto Furia <straluna@email.it>, for the Debian project (and may be used by others). December 10, 2009 WBOX(1)
All times are GMT -4. The time now is 10:44 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy