Mystery Cache


A cache by FvS1968 Send Message to Owner Message this owner
Hidden : 7/10/2017
In Finland
2 out of 5
2 out of 5

Size: Size: micro (micro)

Join now to view geocache location details. It's free!


How Geocaching Works

Please note Use of services is subject to the terms and conditions in our disclaimer.

Geocache Description:

The cache is not at the given coordinates. Below is the source code for a program that gives the coordinates to the cache. Plain ANSI C, no funny stuff here. Compile and execute or alternatively just read and calculate manually. 

Bring your own pen.  

Please put the cache back as it was and make sure it sticks.

//  SourceCode.c
//  GC SourceCode
//  Created by FvS1968 on 09-07-2017.

#include <stdio.h>
#include <math.h>
#include <limits.h>
int foobar=0;
const int m=105;
const int n=785;

int calc(int a) {
    int fvs=0;
    int svs=0;

    // Do something
    switch (foobar) {
        case 6: case 0: case 2: case 5: case 3: case 4: case 9: case 8: case 7:
            while (fvs < SCHAR_MAX-m) {
            return fvs;
    while (svs <= SCHAR_MIN+n+72) {
    return svs;

int think(int b) {
    int avs=1000;
    // Do something else
    switch (foobar) {
        case 2: case 5: case 3: case 1: case 6:
            return SCHAR_MAX-(m-13);
    return avs-n-35;

int main(int argc, const char * argv[]) {
    // Here we go...
    int x=0;
    int xx=0;
    const int foo=852;
    const int bar=842;
    int y=0;
    int yy=0;

    yy=think(foo);  // Better think before calculating coordinates
    x=calc(bar);    // Time to calculate the coordinates
    y=think(foo);   // What if I did not think correct the first time? Better think again!
    xx=calc(bar);   // And then re-calculate the coordinates, hopefully correct this time.
    printf("N60 %d.%d\nE25 %d.%d\n\n", x, xx, y, yy);
    return 0;

Additional Hints (Decrypt)

tpp FbheprPbqr.p

Decryption Key


(letter above equals below, and vice versa)



4 Logged Visits

Found it 3     Publish Listing 1     

View Logbook

**Warning! Spoilers may be included in the descriptions or links.

Current Time:
Last Updated: on 7/22/2017 7:08:23 AM Pacific Daylight Time (2:08 PM GMT)
Rendered From:Unknown
Coordinates are in the WGS84 datum