© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2023
D. VostokovFoundations of Linux Debugging, Disassembling, and Reversinghttps://doi.org/10.1007/978-1-4842-9153-5_13

13. Function Pointer Parameters

Dmitry Vostokov1  
(1)
Dublin, Ireland
 

“FunctionPointerParameters” Project

It is our final project, and it can be downloaded from

github.com/apress/linux-debugging-disassembling-reversing/Chapter13/

A summary of the project source code:
// FunctionParameters.cpp
int main(int argc, char* argv[])
{
      int a, b;
      printf("Enter a and b: ");
      scanf("%d %d", &a, &b);
      if (arithmetic (a, &b))
      {
            printf("Result = %d", b);
      }
      return 0;
}
// Arithmetic.cpp
bool arithmetic (int a, int *b)
{
      if ...

Get Foundations of Linux Debugging, Disassembling, and Reversing: Analyze Binary Code, Understand Stack Memory Usage, and Reconstruct C/C++ Code with Intel x64 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.