Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- bla foo(int* fooptr, const int* barptr, int ndim, const int* ab, const int* cd) {
- if (ndim == 1) {
- for (int i = 0; i < ab[0]; i++) {
- fooptr[i] = barptr[i*cd[0]];
- }
- }
- else {
- for (int i = 0; i<ab[0]; i++) {
- bla bob = foo(&fooptr[i*ab[1]], &barptr[i*cd[0]], ndim - 1, &ab[1], &cd[1]);
- if (bob.str != nullptr) {
- return bob;
- }
- }
- }
- return peter();
- }
Add Comment
Please, Sign In to add comment