Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Online C compiler to run C program online
- #include <stdio.h>
- #include <stdlib.h>
- struct query {
- char *name;
- char *value;
- };
- struct request{
- char *path = "";
- int query_count;
- struct query query[];
- };
- // struct request convert_http( struct request request ){
- // struct request req;
- // }
- int main() {
- struct request req = {
- .path="test",
- .query_count=10,
- .query={
- struct query {
- .name="var1",
- .value="val1"
- }
- }
- }
- // Write C code here
- printf("Hello world");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement