interposed.c 313 B

12345678910111213141516
  1. /*
  2. * Copyright 2020 Yury Gribov
  3. *
  4. * The MIT License (MIT)
  5. *
  6. * Use of this source code is governed by MIT license that can be
  7. * found in the LICENSE.txt file.
  8. */
  9. #include <stdio.h>
  10. #include "interposed.h"
  11. __attribute__((visibility("default")))
  12. void foo(int x, int y) {
  13. printf("Hello %d\n", x + 2*y);
  14. }