Search:

Type: Posts; User: HIT_Braga

Search: Search took 0.00 seconds.

  1. Replies
    16
    Views
    2,923

    Hello again I was trying for a while...

    Hello again

    I was trying for a while understading but i can't figured it out.

    When i get this code


    char op[]="cr test";
    //teste(op);
    char **comando=teste(op);
  2. Replies
    16
    Views
    2,923

    Thks vart i'm noob sorry. just a simple * :(...

    Thks vart i'm noob sorry.

    just a simple * :( dahhh
  3. Replies
    16
    Views
    2,923

    Hello again. Can help me :( ...

    Hello again.

    Can help me :(



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

    char** teste(char* s)
  4. Replies
    16
    Views
    2,923

    Hello Thanks for the help people. The code is...

    Hello
    Thanks for the help people.
    The code is working great but just one thing.


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

    char* teste(char* s)
    {
  5. Replies
    16
    Views
    2,923

    Help with returning an array

    Hello.

    I need to return the array to my main function, but i can't get it working.
    Can some one help me.


    char teste(char s[])
    {
    char *tok[3], *p;
    int i;
  6. Replies
    10
    Views
    2,244

    Thanks tabstop. That the way i already do the...

    Thanks tabstop.

    That the way i already do the job.

    I just was looking for an better way. I don't really know if argv and argc can be used in readline.

    Thanks anyway
  7. Replies
    10
    Views
    2,244

    Yes Adak. When i run my program the prompt...

    Yes Adak.

    When i run my program the prompt changes to Letters, because i'am using readline.h
    After the user should give me some comands that my program executes, but i want to check how many args...
  8. Replies
    10
    Views
    2,244

    Yes DeadPlanet i know that also. But my...

    Yes DeadPlanet i know that also.

    But my program stays always with the prompt of readline "Letters:>" and i need to count argc in this.

    If i put ./Letters testing, argc will be 2 and so on....
  9. Replies
    10
    Views
    2,244

    Here is an sample example. #include...

    Here is an sample example.


    #include<stdio.h>
    #include <readline/readline.h>
    #include <readline/history.h>
    int main(int argc,char *argv[])
    {
    char *s;
    s = readline("Letters>");
  10. Replies
    10
    Views
    2,244

    I know i can use argc to know the number of args....

    I know i can use argc to know the number of args. But i already try to put like so many examples over internet and always count wrong args.
  11. Replies
    10
    Views
    2,244

    HELP with READLINE.H

    Hello again :)

    Is possible to know how many args has been introduced by the user, without making any functions to do that, simple using my code:


    char *s ;
    int n = 0, q = 0 ;
    int x,y;...
  12. Replies
    5
    Views
    2,638

    Hello nonpuz. Thanks for the help...it's working...

    Hello nonpuz.
    Thanks for the help...it's working great.
    I changed a little because it was very advanced for me, but i got the idea so it was easy to change.

    Thanks again.
  13. Replies
    5
    Views
    2,638

    My problem is that pch will have at first time an...

    My problem is that pch will have at first time an letter so is digit will work fine, but next time will have numbers, and i can figured out how i will do the job so it will works for everithing....
  14. Replies
    5
    Views
    2,638

    Help using strtok

    Hello.

    Can some one help me, using strtok and some checks.


    int num_args()
    {
    int numero=0,size=0
    char op[20]="p 1 1",char op1[20]="p 10 20";
    char *pch;
  15. Replies
    1
    Views
    820

    Simple function problem

    Hello.

    I have um simple program that just count how many args are introduced by user.

    Example: insert 20 30 should say 3 args. The problem is i can count the args correctly but one of my...
  16. Replies
    3
    Views
    833

    If i replace char tam[10]={ };...

    If i replace



    char tam[10]={ };
    fgets(tam,5,fp1);


    i got this output:
  17. Replies
    3
    Views
    833

    Help with some reading file

    Hello.

    I have the following code to read one file.


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

    main()
Results 1 to 17 of 17