I fixed the SQLite segfault! Turned out to be an sprintf usage error
on my part.

I forgot to malloc space for the destination string. whoops!  Now it gets this far:

admin@mako:~/Documents/Thesis/OronymCode $ ./wordBreakdown
DATABASE SUCCESSFULLY OPENED
gets here, 0
gets here, phrase = A nice cold shower
gets here, phrase = A nice cold shower
A nice cold shower
Bus error: 10
admin@mako:~/Documents/Thesis/OronymCode $

But that's progress! :D
WHAT NOW BIATCHES! MY SQLITE queries are finally working!

I'm not exactly sure what's happening with them, but it's pretty clear it's working.

PROBLEMS:

It doesn't find "A" because of case sensitivity, probably. I should deal with that! :D

Also, it doesn't actuall appear to populate the orthoPhrases vector I want to put stuff in. I'll have to
check what's going on with that (look around line 80)

Output:

admin@mako:~/Documents/Thesis/OronymCode $ ./wordBreakdown
DATABASE SUCCESSFULLY OPENED
A|nice|cold|shower|
ortho = nice
uniqID = 1
PartOfSpeech = JJ
SAMPA =  "naIs
extendedORTHO = {nice}
freq = 190708

 ortho = nice
 uniqID = 2
 PartOfSpeech = NNP
 SAMPA =  "nis
 extendedORTHO = {nice}
 freq = 190708

 ROW 0: nice | 1 | JJ |  "naIs  | {nice} | 190708 |
 ROW 1: nice | 2 | NNP |  "nis  | {nice} | 190708 |
 ortho = cold
 uniqID =
 PartOfSpeech = JJ/NN
 SAMPA =  "kould
 extendedORTHO = {cold}
 freq = 52844

  ROW 0: nice | 1 | JJ |  "naIs  | {nice} | 190708 |
  ROW 1: nice | 2 | NNP |  "nis  | {nice} | 190708 |
  ROW 2: cold |  | JJ/NN |  "kould  | {cold} | 52844 |
  ortho = shower
  uniqID =
  PartOfSpeech = NN/VB/VBP
  SAMPA =  "SaU`r
  extendedORTHO = {shower}
  freq = 7653

   ROW 0: nice | 1 | JJ |  "naIs  | {nice} | 190708 |
   ROW 1: nice | 2 | NNP |  "nis  | {nice} | 190708 |
   ROW 2: cold |  | JJ/NN |  "kould  | {cold} | 52844 |
   ROW 3: shower |  | NN/VB/VBP |  "SaU`r  | {shower} | 7653 |

    ROW 0: nice | 1 | JJ |  "naIs  | {nice} | 190708 |
    ROW 1: nice | 2 | NNP |  "nis  | {nice} | 190708 |
    ROW 2: cold |  | JJ/NN |  "kould  | {cold} | 52844 |
    ROW 3: shower |  | NN/VB/VBP |  "SaU`r  | {shower} | 7653 |
    ortho = nice
    uniqID = 1
    PartOfSpeech = JJ
    SAMPA =  "naIs
    extendedORTHO = {nice}
    freq = 190708

    ortho = nice
    uniqID = 2
    PartOfSpeech = NNP
    SAMPA =  "nis
    extendedORTHO = {nice}
    freq = 190708

    ROW 0: nice | 1 | JJ |  "naIs  | {nice} | 190708 |
    ROW 1: nice | 2 | NNP |  "nis  | {nice} | 190708 |
    ROW 2: cold |  | JJ/NN |  "kould  | {cold} | 52844 |
    ROW 3: shower |  | NN/VB/VBP |  "SaU`r  | {shower} | 7653 |
    ROW 4: nice | 1 | JJ |  "naIs  | {nice} | 190708 |
    ROW 5: nice | 2 | NNP |  "nis  | {nice} | 190708 |
    ortho = cold
    uniqID =
    PartOfSpeech = JJ/NN
    SAMPA =  "kould
    extendedORTHO = {cold}
    freq = 52844

    ROW 0: nice | 1 | JJ |  "naIs  | {nice} | 190708 |
    ROW 1: nice | 2 | NNP |  "nis  | {nice} | 190708 |
    ROW 2: cold |  | JJ/NN |  "kould  | {cold} | 52844 |
    ROW 3: shower |  | NN/VB/VBP |  "SaU`r  | {shower} | 7653 |
    ROW 4: nice | 1 | JJ |  "naIs  | {nice} | 190708 |
    ROW 5: nice | 2 | NNP |  "nis  | {nice} | 190708 |
    ROW 6: cold |  | JJ/NN |  "kould  | {cold} | 52844 |
    ortho = shower
    uniqID =
    PartOfSpeech = NN/VB/VBP
    SAMPA =  "SaU`r
    extendedORTHO = {shower}
    freq = 7653

    ROW 0: nice | 1 | JJ |  "naIs  | {nice} | 190708 |
    ROW 1: nice | 2 | NNP |  "nis  | {nice} | 190708 |
    ROW 2: cold |  | JJ/NN |  "kould  | {cold} | 52844 |
    ROW 3: shower |  | NN/VB/VBP |  "SaU`r  | {shower} | 7653 |
    ROW 4: nice | 1 | JJ |  "naIs  | {nice} | 190708 |
    ROW 5: nice | 2 | NNP |  "nis  | {nice} | 190708 |
    ROW 6: cold |  | JJ/NN |  "kould  | {cold} | 52844 |
    ROW 7: shower |  | NN/VB/VBP |  "SaU`r  | {shower} | 7653 |

    ---

    admin@mako:~/Documents/Thesis/OronymCode $