Search:

Type: Posts; User: grytskiv

Search: Search took 0.01 seconds.

  1. Replies
    2
    Views
    2,214

    How fix error? (point arithmetics)

    code:


    #include <stdlib.h>
    #include <stdio.h>
    #include <string.h>

    int
    main()
    {
  2. Replies
    1
    Views
    2,402

    global scope and pointers

    my code:



    #include <stdio.h>

    int *pPointer;

    void
    my_function()
  3. Replies
    2
    Views
    1,376

    example segmental error

    code:



    #include <stdio.h>
    #include <stdlib.h>

    int
    main()
    {
  4. Replies
    1
    Views
    4,300

    get size allocated memory for ARRAY structs

    my simple source code:



    #include <stdio.h>
    #include <stdlib.h>

    int
    main()
    {
  5. Replies
    1
    Views
    1,469

    How I can recive response from httpd (for example...

    How I can recive response from httpd (for example Apache). Where I can get size response?

    My code:



    #define BUFFER_SIZE 1024

    char message[] = "GET /index.php HTTP/1.1\r\nHOST: ...
  6. GCC - how turnoff warning "warning: unknown escape sequence '\s'"

    Warning while compiling program with "\s" modificator in function regcomp

    Terminal output:


    grytskiv@ZXDSL831II:~/socket/proxy$ gcc client.c -g -o client && ./client
    client.c: In function...
  7. Arg struct in pThread function [pthread_create()]

    I study pThread, and now I have problem with sending arg (struct data type) to new thread...


    In terminal I have this output:
    grytskiv@ZXDSL831II:~/thread/$ gcc -l pthread scaner.c -o scaner &&...
  8. Replies
    4
    Views
    13,686

    THANKS for example!!!

    THANKS for example!!!
  9. Replies
    4
    Views
    13,686

    Ok, I write some code for get ALL numbers from...

    Ok, I write some code for get ALL numbers from string:



    int error = 0;
    regex_t re;
    size_t a = 2;
    regmatch_t arrayOfMatches[10];
    int counter=0;
    int *Matches;
  10. Replies
    4
    Views
    13,686

    How get all numbers by regex?

    How get all numbers by regex?

    If I input string like "34df4354sdf234ds23", after regexec I get only:
    submatch: 1
    match 0: 34


    How get something like this:
    submatch: 4
    match 0: 34
  11. Replies
    0
    Views
    2,615

    Where error (SOCKETS)

    SEND FUNCTION:


    void menu_r(char *buffer,struct sockaddr_in addr_slave)
    {
    printf("%s\n",buffer); /* debug output */
    struct sockaddr_in addr;
    int sd,addr_size;
    char message[100];
Results 1 to 11 of 11