• Visitors can check out the Forum FAQ by clicking this link. You have to register before you can post: click the REGISTER link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. View our Forum Privacy Policy.
  • Want to receive the latest contracting news and advice straight to your inbox? Sign up to the ContractorUK newsletter here. Every sign up will also be entered into a draw to WIN £100 Amazon vouchers!

Pimps getting creative

Collapse
X
  •  
  • Filter
  • Time
  • Show
Clear All
new posts

    #31
    Originally posted by NickFitz View Post
    I'm also getting a warning at

    Code:
    index = strtol(argv[1], NULL, 10);
    "Implicit conversion loses integer precision: 'long' to 'int'"

    Maybe they're assuming a 32-bit system?
    That wouldn't surprise me.

    I did a course on analysing malware last year and every single research paper presented addressed 32 bit only.

    Which I thought somewhat odd.
    Behold the warranty -- the bold print giveth and the fine print taketh away.

    Comment


      #32
      Not sure what the rules of the challenge were ...

      But I modified the code to:

      1) include i in the printf statement in function try
      2) changed the <= FTBL_LEN to < FTBL_LEN in the error/boundary check section

      Call program with 5 as argument i.e. index=5 to invoke goal function which outputs the same address as the pointer stored in tbl[5].

      I'll get my coat ...

      Comment

      Working...
      X