Advertisement
kknndd_

Untitled

Apr 14th, 2021
170
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.65 KB | None | 0 0
  1. // Online C compiler to run C program online
  2. #include <stdio.h>
  3. #include <stdlib.h>
  4.  
  5. struct query {
  6.     char *name;
  7.     char *value;
  8. };
  9.  
  10.  
  11. struct request{
  12.     char *path = "";
  13.     int query_count;
  14.     struct query query[];
  15. };
  16.  
  17. // struct request convert_http( struct request request ){
  18.  
  19. //     struct request req;
  20.  
  21. // }
  22.  
  23. int main() {
  24.    
  25.     struct request req = {
  26.         .path="test",
  27.         .query_count=10,
  28.         .query={
  29.             struct query {
  30.                 .name="var1",
  31.                 .value="val1"
  32.             }
  33.         }
  34.     }
  35.    
  36.     // Write C code here
  37.     printf("Hello world");
  38.    
  39.     return 0;
  40. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement