Search:

Type: Posts; User: DevZero

Page 1 of 2 1 2

Search: Search took 0.00 seconds.

  1. Where did you get rid of retard? Better help and...

    Where did you get rid of retard? Better help and explain it in clear language to me and explain to me why the manuals are written in such an incomprehensible language that no one can understand
  2. The option is unknown at the level indicated.

    Does my system not support this constant?
    code:


    #include <stdio.h>
    #include <sys/types.h>
    #include <sys/socket.h>
    #include <errno.h>
    #include <stdlib.h>
  3. Replies
    3
    Views
    2,338

    Now everything has worked. I do not like the...

    Now everything has worked. I do not like the perror function because it produces too little informative messages and it's better to do it manually. Problem solved
  4. Replies
    3
    Views
    2,338

    getsockopt: Error EFAULT

    Here's the code:


    #include <stdio.h>
    #include <sys/types.h>
    #include <sys/socket.h>
    #include <errno.h>

    int main()
    {
  5. #include static void print() {...

    #include <stdio.h>

    static void print()
    {
    printf("Ok!\n");
    }

    int main(int atgc, char *argv[])
    {
    FILE *f;
  6. I know the rules of unix but now I do not follow...

    I know the rules of unix but now I do not follow them as it is deprived of a phone instead of a computer.


    #include <stdio.h>

    const void f_write()
    {
    FILE *f;
    char Text[]="Test\n";
    if...
  7. Replies
    5
    Views
    907

    No, writing your programs for hacking is much...

    No, writing your programs for hacking is much more interesting. I already found 5 bugs in linux and I will not tell anyone about them hahaha! :biggrin:The problem is solved by all so far, the topic...
  8. The function declared with const issues a warning

    My code:


    #include <stdio.h>

    const void write()
    {
    FILE *f;
    char Text[]="Test\n";
    if ((f = fopen("text.txt","a")) == NULL)
  9. Replies
    5
    Views
    907

    I'm going to do a program that hacks linux. I...

    I'm going to do a program that hacks linux. I removed the ampersand but the output remained the same with unreadable characters.
  10. I created a topic on the forum can not enter it

    I just created a new topic and when I wanted it, then the following error popped up:
  11. Replies
    5
    Views
    907

    Strange behavior fwrite

    I wrote a small program:


    #include <stdio.h>

    int main()
    {
    FILE *f;
    char Text[]="Test\n";
    if ((f = fopen("text.txt","a")) == NULL)
  12. Thanks, all worked well

    Thanks, all worked well
  13. error: invalid use of undefined type ‘struct tms’

    This:


    #include <stdio.h>
    #include <sys/time.h>
    #include <time.h>

    struct tms tmsBegin,tmsEnd;
    void time_start() { times(&tmsBegin); }
    long time_stop()
  14. error: storage size of ‘tz’ isn’t known

    This function is not mine, I took it from the Internet. Here's the code:


    #include <sys/time.h>
    #include <stdio.h>

    struct timeval tv1,tv2,dtv;
    struct timezone tz;
    void time_start() {...
  15. Replies
    11
    Views
    1,917

    I read many manuals and finally understood how to...

    I read many manuals and finally understood how to solve this problem:


    #include <stdio.h>
    #include <unistd.h>

    int main(int argc, char *argv[])
    {
    int x = execvp(argv[1], argv);
    if(x==-1)
  16. Replies
    11
    Views
    1,917

    This code is very buggy, although I did not...

    This code is very buggy, although I did not change anything in it, here's the log:


    Script started on Sun 16 Jul 2017 04:40:52 PM MSK
    root programs $  /a./a.out ...
  17. Replies
    11
    Views
    1,917

    made this decision: #include ...

    made this decision:


    #include <stdio.h>
    #include <errno.h>
    #include <unistd.h>
    int main()
    {
    FILE *popen_result;
    char buff[512];
  18. Replies
    11
    Views
    1,917

    This code works, but it can not understand...

    This code works, but it can not understand whether the file was executed or not.
    I tried to print the return value: printf("%d\n", popen_result), but each time the program simply outputs a random...
  19. I realized why the code runs so slowly. I made...

    I realized why the code runs so slowly. I made this code:


    #include <stdio.h>

    int main()
    {
    FILE *f;
    f = freopen("out", "a", stdout);
    for(int num=0; num<1000000;++num)
  20. There's a small mistake, here's the correct code...

    There's a small mistake, here's the correct code


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

    #define SIZE 8

    #define MAX1 100000
  21. I made a harvester of 3 programs: #include...

    I made a harvester of 3 programs:


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

    #define SIZE 8

    #define MAX1 100000
  22. Of course I know this, but the code works as read...

    Of course I know this, but the code works as read carefully the code, it says a<= and not a<. Running the code gives a stable generation, at least for me, so here you are wrong.
  23. Replies
    11
    Views
    1,917

    I specifically use a non-existent command to call...

    I specifically use a non-existent command to call and process the error, but as you can see I can not do it and I really need it.
  24. Replies
    4
    Views
    2,166

    information

    My gcc: 4.9.2-10 gnueabihf
  25. Replies
    11
    Views
    1,917

    The program does not work as I need it

    My code:


    #include <stdio.h>

    int main()
    {
    FILE *popen_result;
    char buff[512];
    popen_result = popen("Err", "r");
Results 1 to 25 of 43
Page 1 of 2 1 2