Skip to content

Commit

Permalink
Added code for step 5
Browse files Browse the repository at this point in the history
  • Loading branch information
Jose Carlos Andreu committed Nov 30, 2020
1 parent f3e8f99 commit 1d02832
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions 5_macro_definitions.ql
Original file line number Diff line number Diff line change
@@ -1,2 +1,8 @@
import cpp

from Macro m
where m.getName() = ["ntohs", "ntohl", "ntohll"]
//where m.getName().regexpMatch("ntoh(s|l|ll)")
select m, "I found: " + m.getName()


2 comments on commit 1d02832

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1 query changed between f3e8f99 and 1d02832 after push to refs/heads/s5:

  • 5_macro_definitions.ql

Results for 5_macro_definitions.ql: correct (4 results)

@github-learning-lab
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Congratulations, looks like the query you introduced for step 5 finds the correct results!

Merge this Pull Request (unless you're on master), and take a look at the instructions for the next step to continue.

Please sign in to comment.