Date: 2022-03-04T17:37:19+00:00

Actual source code: urlshorten.c

      2: #include <petscsys.h>

      4: int main(int argc,char **argv)
      5: {
      7:   char           shorturl[64];

      9:   PetscInitialize(&argc,&argv,NULL,NULL);if (ierr) return ierr;
     10:   PetscURLShorten("http://www.google.com",shorturl,64);
     11:   PetscPrintf(PETSC_COMM_SELF,"Long url %s short url %s\n","http://www.google.com",shorturl);
     12:   PetscFinalize();
     13:   return ierr;
     14: }

     16: /*TEST

     18:    build:
     19:      requires: ssl

     21:    test:

     23: TEST*/